#252884#252884

#252884 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.150 H 273.7°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#252884
RGBrgb(37, 40, 132)
HSLhsl(238, 56%, 33%)
HSVhsv(238, 72%, 52%)
CMYKcmyk(72%, 69.7%, 0%, 48.2%)
CIE-LABlab(22.22, 30.81, -51.85)
CIE-LCHlch(22.22, 60.31, 300.72°)
OKLaboklab(34.22% 0.0097 -0.1498)
OKLCHoklch(34.22% 0.15 273.7)
XYZxyz(5.6852, 3.5763, 22.2160)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252884 #848125
analogous
#255784 #252884 #512584
triadic
#252884 #842528 #288425
tetradic
#252884 #842557 #848125 #258451
square
#252884 #842557 #848125 #258451
split-complementary
#252884 #845125 #578425
monochromatic
#0A0B24 #181A54 #252884 #3236B4 #5458CF

Accessibility & contrast

On white

12.24
#252884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#252884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252884
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252884#FFFFFF#000000##FFFFFF
##2528841.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252884;
/* rgb */ color: rgb(37, 40, 132);
/* oklch */ color: oklch(34.2% 0.150 273.7);
Tailwind
colors: {
  custom: {
    50: '#6e62a9',
    500: '#252884',
    950: '#000000',
  },
}
SCSS
$custom: #252884;
$custom-light: #6e62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#252884",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 238.105,
    "s": 56.213,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34219,
    "c": 0.15014,
    "h": 273.7
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#252884
secondary
#B3B051
accent
#DB48E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252884

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

Preview Lab → · Contrast checker → · Palette generator →

#252884 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva