#254F7B#254F7B

#254F7B is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.0% C 0.087 H 251.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#254F7B
RGBrgb(37, 79, 123)
HSLhsl(211, 54%, 31%)
HSVhsv(211, 70%, 48%)
CMYKcmyk(69.9%, 35.8%, 0%, 51.8%)
CIE-LABlab(32.73, 0.85, -29.27)
CIE-LCHlch(32.73, 29.28, 271.65°)
OKLaboklab(41.98% -0.0276 -0.083)
OKLCHoklch(41.98% 0.087 251.6)
XYZxyz(7.1328, 7.4146, 19.7903)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F7B #7B5125
analogous
#257A7B #254F7B #26257B
triadic
#254F7B #7B254F #4F7B25
tetradic
#254F7B #7B257A #7B5125 #257B26
square
#254F7B #7B257A #7B5125 #257B26
split-complementary
#254F7B #7B2625 #7A7B25
monochromatic
#09131D #17314C #254F7B #336DAA #508CCA

Accessibility & contrast

On white

8.46
#254F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#254F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F7B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F7B#FFFFFF#000000##FFFFFF
##254F7B1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517D
Deuteranopia (green-blind)
#2F497A
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254f7b;
/* rgb */ color: rgb(37, 79, 123);
/* oklch */ color: oklch(42.0% 0.087 251.6);
Tailwind
colors: {
  custom: {
    50: '#6a80a1',
    500: '#254f7b',
    950: '#000000',
  },
}
SCSS
$custom: #254f7b;
$custom-light: #6a80a1;
$custom-dark: #000000;
JSON
{
  "hex": "#254f7b",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 123
  },
  "hsl": {
    "h": 210.698,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4198,
    "c": 0.08748,
    "h": 251.6
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#254F7B
secondary
#AD7F4F
accent
#964BDD
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #254F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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