#254B8A#254B8A

#254B8A is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.0% C 0.114 H 259.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#254B8A
RGBrgb(37, 75, 138)
HSLhsl(217, 58%, 34%)
HSVhsv(217, 73%, 54%)
CMYKcmyk(73.2%, 45.7%, 0%, 45.9%)
CIE-LABlab(32.39, 9.30, -39.08)
CIE-LCHlch(32.39, 40.17, 283.39°)
OKLaboklab(42.01% -0.0198 -0.1118)
OKLCHoklch(42.01% 0.114 259.9)
XYZxyz(7.8648, 7.2596, 25.0266)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B8A #8A6425
analogous
#257E8A #254B8A #32258A
triadic
#254B8A #8A254B #4B8A25
tetradic
#254B8A #8A257E #8A6425 #258A32
square
#254B8A #8A257E #8A6425 #258A32
split-complementary
#254B8A #8A3225 #7E8A25
monochromatic
#0B1729 #18315A #254B8A #3265BA #5786D2

Accessibility & contrast

On white

8.56
#254B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#254B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B8A
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B8A#FFFFFF#000000##FFFFFF
##254B8A1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C518C
Deuteranopia (green-blind)
#184889
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254b8a;
/* rgb */ color: rgb(37, 75, 138);
/* oklch */ color: oklch(42.0% 0.114 259.9);
Tailwind
colors: {
  custom: {
    50: '#6d7cac',
    500: '#254b8a',
    950: '#000000',
  },
}
SCSS
$custom: #254b8a;
$custom-light: #6d7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#254b8a",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 138
  },
  "hsl": {
    "h": 217.426,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42005,
    "c": 0.11357,
    "h": 259.9
  },
  "luminance": 0.0726
}

Semantic roles & 50–950 ramp

primary
#254B8A
secondary
#B79254
accent
#A747E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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