#252C78#252C78

#252C78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.128 H 273.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#252C78
RGBrgb(37, 44, 120)
HSLhsl(235, 53%, 31%)
HSVhsv(235, 69%, 47%)
CMYKcmyk(69.2%, 63.3%, 0%, 52.9%)
CIE-LABlab(22.13, 23.67, -44.41)
CIE-LCHlch(22.13, 50.32, 298.06°)
OKLaboklab(33.81% 0.0075 -0.128)
OKLCHoklch(33.81% 0.128 273.3)
XYZxyz(5.0527, 3.5503, 18.1847)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C78 #787125
analogous
#255578 #252C78 #472578
triadic
#252C78 #78252C #2C7825
tetradic
#252C78 #782555 #787125 #257847
square
#252C78 #782555 #787125 #257847
split-complementary
#252C78 #784725 #557825
monochromatic
#080A1A #171B49 #252C78 #333DA7 #4F59C9

Accessibility & contrast

On white

12.28
#252C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#252C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C78
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C78#FFFFFF#000000##FFFFFF
##252C781.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252c78;
/* rgb */ color: rgb(37, 44, 120);
/* oklch */ color: oklch(33.8% 0.128 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#252c78',
    950: '#000000',
  },
}
SCSS
$custom: #252c78;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252c78",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 234.94,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3381,
    "c": 0.1282,
    "h": 273.3
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#252C78
secondary
#AAA34E
accent
#D04CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #252C78

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

Preview Lab → · Contrast checker → · Palette generator →

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