#252C79#252C79

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

Color values

HEX#252C79
RGBrgb(37, 44, 121)
HSLhsl(235, 53%, 31%)
HSVhsv(235, 69%, 47%)
CMYKcmyk(69.4%, 63.6%, 0%, 52.5%)
CIE-LABlab(22.21, 24.05, -44.90)
CIE-LCHlch(22.21, 50.94, 298.17°)
OKLaboklab(33.9% 0.0075 -0.1294)
OKLCHoklch(33.9% 0.13 273.3)
XYZxyz(5.1137, 3.5747, 18.5059)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C79 #797225
analogous
#255679 #252C79 #482579
triadic
#252C79 #79252C #2C7925
tetradic
#252C79 #792556 #797225 #257948
square
#252C79 #792556 #797225 #257948
split-complementary
#252C79 #794825 #567925
monochromatic
#080A1B #171B4A #252C79 #333DA8 #4F59C9

Accessibility & contrast

On white

12.24
#252C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#252C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##252C79#FFFFFF#000000##FFFFFF
##252C791.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)
#00397C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252c79;
/* rgb */ color: rgb(37, 44, 121);
/* oklch */ color: oklch(33.9% 0.130 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#252c79',
    950: '#000000',
  },
}
SCSS
$custom: #252c79;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252c79",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 235,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33902,
    "c": 0.12965,
    "h": 273.3
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#252C79
secondary
#ABA44E
accent
#D04BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #252C79

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

Preview Lab → · Contrast checker → · Palette generator →

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