#254D8E#254D8E

#254D8E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.117 H 259.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#254D8E
RGBrgb(37, 77, 142)
HSLhsl(217, 59%, 35%)
HSVhsv(217, 74%, 56%)
CMYKcmyk(73.9%, 45.8%, 0%, 44.3%)
CIE-LABlab(33.25, 9.52, -40.15)
CIE-LCHlch(33.25, 41.27, 283.34°)
OKLaboklab(42.75% -0.021 -0.115)
OKLCHoklch(42.75% 0.117 259.7)
XYZxyz(8.2975, 7.6532, 26.6259)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D8E #8E6625
analogous
#25818E #254D8E #32258E
triadic
#254D8E #8E254D #4D8E25
tetradic
#254D8E #8E2581 #8E6625 #258E32
square
#254D8E #8E2581 #8E6625 #258E32
split-complementary
#254D8E #8E3225 #818E25
monochromatic
#0C182D #18335D #254D8E #3267BF #5A88D4

Accessibility & contrast

On white

8.30
#254D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#254D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D8E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D8E#FFFFFF#000000##FFFFFF
##254D8E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#184A8D
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254d8e;
/* rgb */ color: rgb(37, 77, 142);
/* oklch */ color: oklch(42.8% 0.117 259.7);
Tailwind
colors: {
  custom: {
    50: '#6e7eaf',
    500: '#254d8e',
    950: '#000000',
  },
}
SCSS
$custom: #254d8e;
$custom-light: #6e7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#254d8e",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 142
  },
  "hsl": {
    "h": 217.143,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42751,
    "c": 0.11686,
    "h": 259.7
  },
  "luminance": 0.07654
}

Semantic roles & 50–950 ramp

primary
#254D8E
secondary
#B99356
accent
#A646E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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