#252E8B#252E8B

#252E8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.152 H 271.8°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#252E8B
RGBrgb(37, 46, 139)
HSLhsl(235, 58%, 35%)
HSVhsv(235, 73%, 55%)
CMYKcmyk(73.4%, 66.9%, 0%, 45.5%)
CIE-LABlab(24.36, 29.45, -52.72)
CIE-LCHlch(24.36, 60.39, 299.19°)
OKLaboklab(35.98% 0.0049 -0.1524)
OKLCHoklch(35.98% 0.152 271.8)
XYZxyz(6.3986, 4.2107, 24.8966)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E8B #8B8225
analogous
#25618B #252E8B #4F258B
triadic
#252E8B #8B252E #2E8B25
tetradic
#252E8B #8B2561 #8B8225 #258B4F
square
#252E8B #8B2561 #8B8225 #258B4F
split-complementary
#252E8B #8B4F25 #618B25
monochromatic
#0B0E2A #181E5B #252E8B #323EBB #5863D3

Accessibility & contrast

On white

11.40
#252E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#252E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E8B
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E8B#FFFFFF#000000##FFFFFF
##252E8B1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252e8b;
/* rgb */ color: rgb(37, 46, 139);
/* oklch */ color: oklch(36.0% 0.152 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f67ae',
    500: '#252e8b',
    950: '#000000',
  },
}
SCSS
$custom: #252e8b;
$custom-light: #6f67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#252e8b",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 234.706,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35979,
    "c": 0.15243,
    "h": 271.8
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#252E8B
secondary
#B7AE55
accent
#D447E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252E8B

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

Preview Lab → · Contrast checker → · Palette generator →

#252E8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva