#252F8B#252F8B

#252F8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.151 H 271.6°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#252F8B
RGBrgb(37, 47, 139)
HSLhsl(234, 58%, 35%)
HSVhsv(234, 73%, 55%)
CMYKcmyk(73.4%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.61, 28.79, -52.31)
CIE-LCHlch(24.61, 59.71, 298.83°)
OKLaboklab(36.16% 0.0042 -0.1511)
OKLCHoklch(36.16% 0.151 271.6)
XYZxyz(6.4381, 4.2898, 24.9098)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F8B #8B8125
analogous
#25628B #252F8B #4E258B
triadic
#252F8B #8B252F #2F8B25
tetradic
#252F8B #8B2562 #8B8125 #258B4E
square
#252F8B #8B2562 #8B8125 #258B4E
split-complementary
#252F8B #8B4E25 #628B25
monochromatic
#0B0E2A #181F5B #252F8B #323FBB #5864D3

Accessibility & contrast

On white

11.30
#252F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#252F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F8B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F8B#FFFFFF#000000##FFFFFF
##252F8B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252f8b;
/* rgb */ color: rgb(37, 47, 139);
/* oklch */ color: oklch(36.2% 0.151 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f67ae',
    500: '#252f8b',
    950: '#000000',
  },
}
SCSS
$custom: #252f8b;
$custom-light: #6f67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#252f8b",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 234.118,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36163,
    "c": 0.1512,
    "h": 271.6
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#252F8B
secondary
#B7AD55
accent
#D247E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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