#254F78#254F78

#254F78 is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.8% C 0.083 H 250.0°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#254F78
RGBrgb(37, 79, 120)
HSLhsl(210, 53%, 31%)
HSVhsv(210, 69%, 47%)
CMYKcmyk(69.2%, 34.2%, 0%, 52.9%)
CIE-LABlab(32.57, -0.29, -27.66)
CIE-LCHlch(32.57, 27.66, 269.39°)
OKLaboklab(41.8% -0.0285 -0.0783)
OKLCHoklch(41.8% 0.083 250)
XYZxyz(6.9478, 7.3406, 18.8164)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F78 #784E25
analogous
#257877 #254F78 #252578
triadic
#254F78 #78254F #4F7825
tetradic
#254F78 #772578 #784E25 #257825
square
#254F78 #772578 #784E25 #257825
split-complementary
#254F78 #782525 #787725
monochromatic
#08111A #173049 #254F78 #336EA7 #4F8CC9

Accessibility & contrast

On white

8.51
#254F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#254F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F78
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F78#FFFFFF#000000##FFFFFF
##254F781.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D517A
Deuteranopia (green-blind)
#314977
Tritanopia (blue-blind)
#00595E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254f78;
/* rgb */ color: rgb(37, 79, 120);
/* oklch */ color: oklch(41.8% 0.083 250.0);
Tailwind
colors: {
  custom: {
    50: '#69809f',
    500: '#254f78',
    950: '#000000',
  },
}
SCSS
$custom: #254f78;
$custom-light: #69809f;
$custom-dark: #000000;
JSON
{
  "hex": "#254f78",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 120
  },
  "hsl": {
    "h": 209.639,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.418,
    "c": 0.08335,
    "h": 250
  },
  "luminance": 0.07341
}

Semantic roles & 50–950 ramp

primary
#254F78
secondary
#AA7C4E
accent
#934CDC
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #254F78

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

Preview Lab → · Contrast checker → · Palette generator →

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