#254E8A#254E8A

#254E8A is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.110 H 258.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#254E8A
RGBrgb(37, 78, 138)
HSLhsl(216, 58%, 34%)
HSVhsv(216, 73%, 54%)
CMYKcmyk(73.2%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.30, 7.29, -37.63)
CIE-LCHlch(33.30, 38.33, 280.97°)
OKLaboklab(42.71% -0.0227 -0.1075)
OKLCHoklch(42.71% 0.11 258.1)
XYZxyz(8.0731, 7.6762, 25.0960)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E8A #8A6125
analogous
#25818A #254E8A #2F258A
triadic
#254E8A #8A254E #4E8A25
tetradic
#254E8A #8A2581 #8A6125 #258A2F
square
#254E8A #8A2581 #8A6125 #258A2F
split-complementary
#254E8A #8A2F25 #818A25
monochromatic
#0B1729 #18335A #254E8A #3269BA #5789D2

Accessibility & contrast

On white

8.28
#254E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#254E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E8A
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E8A#FFFFFF#000000##FFFFFF
##254E8A1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538C
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254e8a;
/* rgb */ color: rgb(37, 78, 138);
/* oklch */ color: oklch(42.7% 0.110 258.1);
Tailwind
colors: {
  custom: {
    50: '#6d7fac',
    500: '#254e8a',
    950: '#000000',
  },
}
SCSS
$custom: #254e8a;
$custom-light: #6d7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#254e8a",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 215.644,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42707,
    "c": 0.10989,
    "h": 258.1
  },
  "luminance": 0.07677
}

Semantic roles & 50–950 ramp

primary
#254E8A
secondary
#B78F54
accent
#A247E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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