#252A79#252A79

#252A79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.132 H 274.0°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#252A79
RGBrgb(37, 42, 121)
HSLhsl(236, 53%, 31%)
HSVhsv(236, 69%, 47%)
CMYKcmyk(69.4%, 65.3%, 0%, 52.5%)
CIE-LABlab(21.69, 25.41, -45.76)
CIE-LCHlch(21.69, 52.34, 299.05°)
OKLaboklab(33.52% 0.0092 -0.132)
OKLCHoklch(33.52% 0.132 274)
XYZxyz(5.0410, 3.4293, 18.4817)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A79 #797425
analogous
#255479 #252A79 #4A2579
triadic
#252A79 #79252A #2A7925
tetradic
#252A79 #792554 #797425 #25794A
square
#252A79 #792554 #797425 #25794A
split-complementary
#252A79 #794A25 #547925
monochromatic
#08091B #171A4A #252A79 #333AA8 #4F56C9

Accessibility & contrast

On white

12.46
#252A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#252A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A79
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A79#FFFFFF#000000##FFFFFF
##252A791.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252a79;
/* rgb */ color: rgb(37, 42, 121);
/* oklch */ color: oklch(33.5% 0.132 274.0);
Tailwind
colors: {
  custom: {
    50: '#6b63a0',
    500: '#252a79',
    950: '#000000',
  },
}
SCSS
$custom: #252a79;
$custom-light: #6b63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252a79",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 236.429,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33515,
    "c": 0.13229,
    "h": 274
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#252A79
secondary
#ABA64E
accent
#D44BDD
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #252A79

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

Preview Lab → · Contrast checker → · Palette generator →

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