#254F7F#254F7F

#254F7F is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.2% C 0.093 H 253.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#254F7F
RGBrgb(37, 79, 127)
HSLhsl(212, 55%, 32%)
HSVhsv(212, 71%, 50%)
CMYKcmyk(70.9%, 37.8%, 0%, 50.2%)
CIE-LABlab(32.96, 2.37, -31.40)
CIE-LCHlch(32.96, 31.49, 274.32°)
OKLaboklab(42.23% -0.0265 -0.0892)
OKLCHoklch(42.23% 0.093 253.5)
XYZxyz(7.3883, 7.5168, 21.1361)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F7F #7F5525
analogous
#257C7F #254F7F #28257F
triadic
#254F7F #7F254F #4F7F25
tetradic
#254F7F #7F257C #7F5525 #257F28
square
#254F7F #7F257C #7F5525 #257F28
split-complementary
#254F7F #7F2825 #7C7F25
monochromatic
#091420 #173250 #254F7F #336CAE #528BCD

Accessibility & contrast

On white

8.39
#254F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#254F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F7F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F7F#FFFFFF#000000##FFFFFF
##254F7F1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5281
Deuteranopia (green-blind)
#2C4A7E
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254f7f;
/* rgb */ color: rgb(37, 79, 127);
/* oklch */ color: oklch(42.2% 0.093 253.5);
Tailwind
colors: {
  custom: {
    50: '#6b80a4',
    500: '#254f7f',
    950: '#000000',
  },
}
SCSS
$custom: #254f7f;
$custom-light: #6b80a4;
$custom-dark: #000000;
JSON
{
  "hex": "#254f7f",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 127
  },
  "hsl": {
    "h": 212,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42228,
    "c": 0.09308,
    "h": 253.5
  },
  "luminance": 0.07518
}

Semantic roles & 50–950 ramp

primary
#254F7F
secondary
#B1834F
accent
#994ADE
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #254F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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