#254D8B#254D8B

#254D8B is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.113 H 259.0°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#254D8B
RGBrgb(37, 77, 139)
HSLhsl(216, 58%, 35%)
HSVhsv(216, 73%, 55%)
CMYKcmyk(73.4%, 44.6%, 0%, 45.5%)
CIE-LABlab(33.06, 8.35, -38.62)
CIE-LCHlch(33.06, 39.52, 282.20°)
OKLaboklab(42.54% -0.0216 -0.1105)
OKLCHoklch(42.54% 0.113 259)
XYZxyz(8.0753, 7.5643, 25.4556)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D8B #8B6325
analogous
#25808B #254D8B #30258B
triadic
#254D8B #8B254D #4D8B25
tetradic
#254D8B #8B2580 #8B6325 #258B30
square
#254D8B #8B2580 #8B6325 #258B30
split-complementary
#254D8B #8B3025 #808B25
monochromatic
#0B172A #18325B #254D8B #3268BB #5888D3

Accessibility & contrast

On white

8.36
#254D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#254D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D8B
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D8B#FFFFFF#000000##FFFFFF
##254D8B1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538D
Deuteranopia (green-blind)
#1C498A
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254d8b;
/* rgb */ color: rgb(37, 77, 139);
/* oklch */ color: oklch(42.5% 0.113 259.0);
Tailwind
colors: {
  custom: {
    50: '#6d7ead',
    500: '#254d8b',
    950: '#000000',
  },
}
SCSS
$custom: #254d8b;
$custom-light: #6d7ead;
$custom-dark: #000000;
JSON
{
  "hex": "#254d8b",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 216.471,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42541,
    "c": 0.11254,
    "h": 259
  },
  "luminance": 0.07565
}

Semantic roles & 50–950 ramp

primary
#254D8B
secondary
#B79055
accent
#A547E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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