#254D7B#254D7B

#254D7B is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.5% C 0.090 H 253.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#254D7B
RGBrgb(37, 77, 123)
HSLhsl(212, 54%, 31%)
HSVhsv(212, 70%, 48%)
CMYKcmyk(69.9%, 37.4%, 0%, 51.8%)
CIE-LABlab(32.10, 2.15, -30.27)
CIE-LCHlch(32.10, 30.34, 274.07°)
OKLaboklab(41.49% -0.0254 -0.0859)
OKLCHoklch(41.49% 0.09 253.5)
XYZxyz(6.9907, 7.1304, 19.7429)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D7B #7B5325
analogous
#25787B #254D7B #28257B
triadic
#254D7B #7B254D #4D7B25
tetradic
#254D7B #7B2578 #7B5325 #257B28
square
#254D7B #7B2578 #7B5325 #257B28
split-complementary
#254D7B #7B2825 #787B25
monochromatic
#09121D #17304C #254D7B #336AAA #5089CA

Accessibility & contrast

On white

8.66
#254D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#254D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D7B
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D7B#FFFFFF#000000##FFFFFF
##254D7B1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39507D
Deuteranopia (green-blind)
#2C487A
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254d7b;
/* rgb */ color: rgb(37, 77, 123);
/* oklch */ color: oklch(41.5% 0.090 253.5);
Tailwind
colors: {
  custom: {
    50: '#6a7ea1',
    500: '#254d7b',
    950: '#000000',
  },
}
SCSS
$custom: #254d7b;
$custom-light: #6a7ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#254d7b",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 123
  },
  "hsl": {
    "h": 212.093,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41487,
    "c": 0.08964,
    "h": 253.5
  },
  "luminance": 0.07131
}

Semantic roles & 50–950 ramp

primary
#254D7B
secondary
#AD814F
accent
#994BDD
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#07090F
muted
#7A7B7E

Preview Lab

Preview with #254D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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