#254E8D#254E8D

#254E8D is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.114 H 258.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#254E8D
RGBrgb(37, 78, 141)
HSLhsl(216, 58%, 35%)
HSVhsv(216, 74%, 55%)
CMYKcmyk(73.8%, 44.7%, 0%, 44.7%)
CIE-LABlab(33.49, 8.46, -39.16)
CIE-LCHlch(33.49, 40.07, 282.19°)
OKLaboklab(42.91% -0.0221 -0.112)
OKLCHoklch(42.91% 0.114 258.8)
XYZxyz(8.2933, 7.7643, 26.2557)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E8D #8D6425
analogous
#25828D #254E8D #30258D
triadic
#254E8D #8D254E #4E8D25
tetradic
#254E8D #8D2582 #8D6425 #258D30
square
#254E8D #8D2582 #8D6425 #258D30
split-complementary
#254E8D #8D3025 #828D25
monochromatic
#0C182C #18335D #254E8D #3269BD #5989D3

Accessibility & contrast

On white

8.23
#254E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#254E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E8D
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E8D#FFFFFF#000000##FFFFFF
##254E8D1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254e8d;
/* rgb */ color: rgb(37, 78, 141);
/* oklch */ color: oklch(42.9% 0.114 258.8);
Tailwind
colors: {
  custom: {
    50: '#6e7faf',
    500: '#254e8d',
    950: '#000000',
  },
}
SCSS
$custom: #254e8d;
$custom-light: #6e7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#254e8d",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 216.346,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42913,
    "c": 0.11419,
    "h": 258.8
  },
  "luminance": 0.07765
}

Semantic roles & 50–950 ramp

primary
#254E8D
secondary
#B89156
accent
#A446E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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