#252E79#252E79

#252E79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.127 H 272.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#252E79
RGBrgb(37, 46, 121)
HSLhsl(234, 53%, 31%)
HSVhsv(234, 69%, 47%)
CMYKcmyk(69.4%, 62%, 0%, 52.5%)
CIE-LABlab(22.75, 22.67, -44.03)
CIE-LCHlch(22.75, 49.52, 297.25°)
OKLaboklab(34.3% 0.0057 -0.1268)
OKLCHoklch(34.3% 0.127 272.6)
XYZxyz(5.1900, 3.7273, 18.5314)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E79 #797025
analogous
#255879 #252E79 #462579
triadic
#252E79 #79252E #2E7925
tetradic
#252E79 #792558 #797025 #257946
square
#252E79 #792558 #797025 #257946
split-complementary
#252E79 #794625 #587925
monochromatic
#080A1B #171C4A #252E79 #3340A8 #4F5CC9

Accessibility & contrast

On white

12.03
#252E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E79
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E79#FFFFFF#000000##FFFFFF
##252E791.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252e79;
/* rgb */ color: rgb(37, 46, 121);
/* oklch */ color: oklch(34.3% 0.127 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b66a0',
    500: '#252e79',
    950: '#000000',
  },
}
SCSS
$custom: #252e79;
$custom-light: #6b66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252e79",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 233.571,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34298,
    "c": 0.12698,
    "h": 272.6
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#252E79
secondary
#ABA14E
accent
#CD4BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #252E79

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

Preview Lab → · Contrast checker → · Palette generator →

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