#254E88#254E88

#254E88 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.6% C 0.107 H 257.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#254E88
RGBrgb(37, 78, 136)
HSLhsl(215, 57%, 34%)
HSVhsv(215, 73%, 53%)
CMYKcmyk(72.8%, 42.6%, 0%, 46.7%)
CIE-LABlab(33.18, 6.51, -36.60)
CIE-LCHlch(33.18, 37.17, 280.09°)
OKLaboklab(42.57% -0.0232 -0.1045)
OKLCHoklch(42.57% 0.107 257.5)
XYZxyz(7.9297, 7.6188, 24.3404)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E88 #885F25
analogous
#258088 #254E88 #2E2588
triadic
#254E88 #88254E #4E8825
tetradic
#254E88 #882580 #885F25 #25882E
square
#254E88 #882580 #885F25 #25882E
split-complementary
#254E88 #882E25 #808825
monochromatic
#0B1728 #183258 #254E88 #326AB8 #5689D1

Accessibility & contrast

On white

8.32
#254E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#254E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E88
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E88#FFFFFF#000000##FFFFFF
##254E881.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33538A
Deuteranopia (green-blind)
#224A87
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254e88;
/* rgb */ color: rgb(37, 78, 136);
/* oklch */ color: oklch(42.6% 0.107 257.5);
Tailwind
colors: {
  custom: {
    50: '#6d7fab',
    500: '#254e88',
    950: '#000000',
  },
}
SCSS
$custom: #254e88;
$custom-light: #6d7fab;
$custom-dark: #000000;
JSON
{
  "hex": "#254e88",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 136
  },
  "hsl": {
    "h": 215.152,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42572,
    "c": 0.10702,
    "h": 257.5
  },
  "luminance": 0.0762
}

Semantic roles & 50–950 ramp

primary
#254E88
secondary
#B68D53
accent
#A147E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #254E88

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

Preview Lab → · Contrast checker → · Palette generator →

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