#252B78#252B78

#252B78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.130 H 273.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#252B78
RGBrgb(37, 43, 120)
HSLhsl(236, 53%, 31%)
HSVhsv(236, 69%, 47%)
CMYKcmyk(69.2%, 64.2%, 0%, 52.9%)
CIE-LABlab(21.86, 24.36, -44.84)
CIE-LCHlch(21.86, 51.03, 298.51°)
OKLaboklab(33.62% 0.0084 -0.1293)
OKLCHoklch(33.62% 0.13 273.7)
XYZxyz(5.0159, 3.4767, 18.1724)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B78 #787225
analogous
#255478 #252B78 #482578
triadic
#252B78 #78252B #2B7825
tetradic
#252B78 #782554 #787225 #257848
square
#252B78 #782554 #787225 #257848
split-complementary
#252B78 #784825 #547825
monochromatic
#08091A #171A49 #252B78 #333CA7 #4F58C9

Accessibility & contrast

On white

12.39
#252B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#252B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B78
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B78#FFFFFF#000000##FFFFFF
##252B781.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #252b78;
/* rgb */ color: rgb(37, 43, 120);
/* oklch */ color: oklch(33.6% 0.130 273.7);
Tailwind
colors: {
  custom: {
    50: '#6b64a0',
    500: '#252b78',
    950: '#000000',
  },
}
SCSS
$custom: #252b78;
$custom-light: #6b64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252b78",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 235.663,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33615,
    "c": 0.12953,
    "h": 273.7
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#252B78
secondary
#AAA44E
accent
#D24CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #252B78

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

Preview Lab → · Contrast checker → · Palette generator →

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