#252E8E#252E8E

#252E8E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.157 H 271.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#252E8E
RGBrgb(37, 46, 142)
HSLhsl(235, 59%, 35%)
HSVhsv(235, 74%, 56%)
CMYKcmyk(73.9%, 67.6%, 0%, 44.3%)
CIE-LABlab(24.64, 30.56, -54.12)
CIE-LCHlch(24.64, 62.15, 299.46°)
OKLaboklab(36.27% 0.0046 -0.1564)
OKLCHoklch(36.27% 0.157 271.7)
XYZxyz(6.6208, 4.2996, 26.0669)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E8E #8E8525
analogous
#25638E #252E8E #50258E
triadic
#252E8E #8E252E #2E8E25
tetradic
#252E8E #8E2563 #8E8525 #258E50
square
#252E8E #8E2563 #8E8525 #258E50
split-complementary
#252E8E #8E5025 #638E25
monochromatic
#0C0F2D #181E5D #252E8E #323EBF #5A64D4

Accessibility & contrast

On white

11.29
#252E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252E8E
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E8E#FFFFFF#000000##FFFFFF
##252E8E1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252e8e;
/* rgb */ color: rgb(37, 46, 142);
/* oklch */ color: oklch(36.3% 0.157 271.7);
Tailwind
colors: {
  custom: {
    50: '#7067b0',
    500: '#252e8e',
    950: '#000000',
  },
}
SCSS
$custom: #252e8e;
$custom-light: #7067b0;
$custom-dark: #000000;
JSON
{
  "hex": "#252e8e",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 234.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36271,
    "c": 0.15652,
    "h": 271.7
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#252E8E
secondary
#B9B056
accent
#D446E2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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