#252F8E#252F8E

#252F8E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.155 H 271.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#252F8E
RGBrgb(37, 47, 142)
HSLhsl(234, 59%, 35%)
HSVhsv(234, 74%, 56%)
CMYKcmyk(73.9%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.89, 29.90, -53.71)
CIE-LCHlch(24.89, 61.48, 299.11°)
OKLaboklab(36.45% 0.004 -0.1552)
OKLCHoklch(36.45% 0.155 271.5)
XYZxyz(6.6603, 4.3787, 26.0801)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F8E #8E8425
analogous
#25638E #252F8E #50258E
triadic
#252F8E #8E252F #2F8E25
tetradic
#252F8E #8E2563 #8E8425 #258E50
square
#252F8E #8E2563 #8E8425 #258E50
split-complementary
#252F8E #8E5025 #638E25
monochromatic
#0C0F2D #181F5D #252F8E #323FBF #5A65D4

Accessibility & contrast

On white

11.20
#252F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#252F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F8E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F8E#FFFFFF#000000##FFFFFF
##252F8E1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #252f8e;
/* rgb */ color: rgb(37, 47, 142);
/* oklch */ color: oklch(36.5% 0.155 271.5);
Tailwind
colors: {
  custom: {
    50: '#7067b0',
    500: '#252f8e',
    950: '#000000',
  },
}
SCSS
$custom: #252f8e;
$custom-light: #7067b0;
$custom-dark: #000000;
JSON
{
  "hex": "#252f8e",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 234.286,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36452,
    "c": 0.1553,
    "h": 271.5
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#252F8E
secondary
#B9AF56
accent
#D346E2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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