#252888#252888

#252888 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.156 H 273.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#252888
RGBrgb(37, 40, 136)
HSLhsl(238, 57%, 34%)
HSVhsv(238, 73%, 53%)
CMYKcmyk(72.8%, 70.6%, 0%, 46.7%)
CIE-LABlab(22.61, 32.26, -53.71)
CIE-LCHlch(22.61, 62.65, 300.99°)
OKLaboklab(34.62% 0.0093 -0.1553)
OKLCHoklch(34.62% 0.156 273.4)
XYZxyz(5.9642, 3.6879, 23.6853)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252888 #888525
analogous
#255A88 #252888 #542588
triadic
#252888 #882528 #288825
tetradic
#252888 #88255A #888525 #258854
square
#252888 #88255A #888525 #258854
split-complementary
#252888 #885425 #5A8825
monochromatic
#0B0C28 #181A58 #252888 #3236B8 #565AD1

Accessibility & contrast

On white

12.09
#252888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#252888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252888
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252888#FFFFFF#000000##FFFFFF
##2528881.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252888;
/* rgb */ color: rgb(37, 40, 136);
/* oklch */ color: oklch(34.6% 0.156 273.4);
Tailwind
colors: {
  custom: {
    50: '#6f62ac',
    500: '#252888',
    950: '#000000',
  },
}
SCSS
$custom: #252888;
$custom-light: #6f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#252888",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 238.182,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34624,
    "c": 0.15555,
    "h": 273.4
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#252888
secondary
#B6B353
accent
#DC47E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252888

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

Preview Lab → · Contrast checker → · Palette generator →

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