#254D7F#254D7F

#254D7F is a dark, moderate cyan. Relative luminance 0.072; OKLCH L 41.7% C 0.095 H 255.2°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#254D7F
RGBrgb(37, 77, 127)
HSLhsl(213, 55%, 32%)
HSVhsv(213, 71%, 50%)
CMYKcmyk(70.9%, 39.4%, 0%, 50.2%)
CIE-LABlab(32.33, 3.69, -32.39)
CIE-LCHlch(32.33, 32.60, 276.50°)
OKLaboklab(41.74% -0.0243 -0.0922)
OKLCHoklch(41.74% 0.095 255.2)
XYZxyz(7.2462, 7.2326, 21.0887)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D7F #7F5725
analogous
#257A7F #254D7F #2A257F
triadic
#254D7F #7F254D #4D7F25
tetradic
#254D7F #7F257A #7F5725 #257F2A
square
#254D7F #7F257A #7F5725 #257F2A
split-complementary
#254D7F #7F2A25 #7A7F25
monochromatic
#091420 #173050 #254D7F #336AAE #5288CD

Accessibility & contrast

On white

8.58
#254D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#254D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D7F
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D7F#FFFFFF#000000##FFFFFF
##254D7F1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365181
Deuteranopia (green-blind)
#29487E
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254d7f;
/* rgb */ color: rgb(37, 77, 127);
/* oklch */ color: oklch(41.7% 0.095 255.2);
Tailwind
colors: {
  custom: {
    50: '#6b7ea4',
    500: '#254d7f',
    950: '#000000',
  },
}
SCSS
$custom: #254d7f;
$custom-light: #6b7ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#254d7f",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 127
  },
  "hsl": {
    "h": 213.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4174,
    "c": 0.09532,
    "h": 255.2
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#254D7F
secondary
#B1854F
accent
#9C4ADE
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #254D7F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#254D7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva