#252D79#252D79

#252D79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.128 H 272.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#252D79
RGBrgb(37, 45, 121)
HSLhsl(234, 53%, 31%)
HSVhsv(234, 69%, 47%)
CMYKcmyk(69.4%, 62.8%, 0%, 52.5%)
CIE-LABlab(22.48, 23.36, -44.47)
CIE-LCHlch(22.48, 50.23, 297.72°)
OKLaboklab(34.1% 0.0066 -0.1281)
OKLCHoklch(34.1% 0.128 272.9)
XYZxyz(5.1514, 3.6501, 18.5185)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D79 #797125
analogous
#255779 #252D79 #472579
triadic
#252D79 #79252D #2D7925
tetradic
#252D79 #792557 #797125 #257947
square
#252D79 #792557 #797125 #257947
split-complementary
#252D79 #794725 #577925
monochromatic
#080A1B #171C4A #252D79 #333EA8 #4F5BC9

Accessibility & contrast

On white

12.14
#252D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#252D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D79
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D79#FFFFFF#000000##FFFFFF
##252D791.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252d79;
/* rgb */ color: rgb(37, 45, 121);
/* oklch */ color: oklch(34.1% 0.128 272.9);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#252d79',
    950: '#000000',
  },
}
SCSS
$custom: #252d79;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252d79",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 234.286,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34099,
    "c": 0.12832,
    "h": 272.9
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#252D79
secondary
#ABA34E
accent
#CF4BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #252D79

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

Preview Lab → · Contrast checker → · Palette generator →

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