Skip to content

CSS named color

SeaGreen #2E8B57

SeaGreen (CSS keyword seagreen) has the hex code #2E8B57 and the RGB value rgb(46, 139, 87): a medium-dark, moderately saturated green.

SeaGreen#2E8B57

A medium-dark green with a blue tint (#2e8b57). It is darker than both mediumseagreen and, confusingly, darkseagreen.

Color codes for SeaGreen

Color codes for SeaGreen
CSS keywordseagreen
HEX#2E8B57
RGBrgb(46, 139, 87)
HSLhsl(146, 50%, 36%)
HWBhwb(146 18% 45%)
OKLCHoklch(56.9% 0.119 154.9)
CMYK (naive, no ICC profile)cmyk(67%, 0%, 37%, 45%)
Decimal3,050,327
Hue familyGreens

Contrast and accessibility

On seagreen, black text has a contrast ratio of 4.94:1 and passes AA for normal text; white text reaches 4.24:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on seagreen4.94:1PassPassFailPass35.1
White text on seagreen4.24:1FailPassFailFail−74.5
Seagreen text on white4.24:1FailPassFailFail69.0
Seagreen text on black4.94:1PassPassFailPass−32.7

Tints and shades

Each step mixes seagreen with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, seagreen, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #38915f
  2. 15%
    #4d9c70
  3. 25%
    #62a881
  4. 35%
    #77b492
  5. 45%
    #8cbfa3
  6. 55%
    #a1cbb3
  7. 65%
    #b6d6c4
  8. 75%
    #cbe2d5
  9. 85%
    #e0eee6
  10. 95%
    #f5f9f7

Shades (mixed with black)

  1. 5%
    #2c8453
  2. 15%
    #27764a
  3. 25%
    #236841
  4. 35%
    #1e5a39
  5. 45%
    #194c30
  6. 55%
    #153f27
  7. 65%
    #10311e
  8. 75%
    #0c2316
  9. 85%
    #07150d
  10. 95%
    #020704

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, seagreen's complementary color is #A15A93 (close to mediumorchid), its analogous colors are #67832B and #008D80, and its triadic partners are #6370BC and #B15A45. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#a15a93
Analogous−30°, +30°#67832b#008d80
Triadic+120°, +240°#6370bc#b15a45
Split-complementary+150°, +210°#8763af#af566e

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

SeaGreen is a cool color: its hue is 146° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
forestgreen#228b225.9
olivedrab#6b8e237.3
darkcyan#008b8b7.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-600#0099664.2
green-700#0082365.6
emerald-700#007a556.4

Code snippets

CSS
.element {
  color: seagreen;
  background-color: #2e8b57;
  border-color: rgb(46 139 87);
  outline-color: oklch(56.9% 0.119 154.9);
}
Tailwind CSS
<div class="bg-[#2e8b57] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-seagreen: #2e8b57;
}
/* then use bg-seagreen, text-seagreen, border-seagreen */
SwiftUI
import SwiftUI

extension Color {
  static let seagreen = Color(red: 0.180, green: 0.545, blue: 0.341)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Seagreen = Color(0xFF2E8B57)
Flutter
import 'package:flutter/material.dart';

const seagreen = Color(0xFF2E8B57);
Android XML
<!-- res/values/colors.xml -->
<color name="seagreen">#2E8B57</color>

Frequently asked questions

What is the hex code for seagreen?
The hex code for seagreen is #2E8B57. The same color is rgb(46, 139, 87), hsl(146, 50%, 36%) and oklch(56.9% 0.119 154.9), and in CSS you can also write the keyword seagreen directly.
Is seagreen a warm or cool color?
SeaGreen is a cool color: its hue is 146° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
What colors go with seagreen?
Rotating the hue in OKLCH while keeping lightness and chroma, seagreen's complementary color is #A15A93 (close to mediumorchid), its analogous colors are #67832B and #008D80, and its triadic partners are #6370BC and #B15A45. For text on top, black gives the higher contrast.
Can you use white text on seagreen?
White text on seagreen has a contrast ratio of 4.24:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 4.94:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −74.5 for white and Lc 35.1 for black.
What is the RGB value of seagreen?
SeaGreen is rgb(46, 139, 87): red 46, green 139 and blue 87 on the 0 to 255 scale, or 18.0%, 54.5% and 34.1%. As a decimal integer it is 3050327.

Last reviewed by Arielton Oberek.