#252E97#252E97

#252E97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.169 H 271.3°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#252E97
RGBrgb(37, 46, 151)
HSLhsl(235, 61%, 37%)
HSVhsv(235, 75%, 59%)
CMYKcmyk(75.5%, 69.5%, 0%, 40.8%)
CIE-LABlab(25.51, 33.86, -58.25)
CIE-LCHlch(25.51, 67.38, 300.17°)
OKLaboklab(37.17% 0.0038 -0.1685)
OKLCHoklch(37.17% 0.169 271.3)
XYZxyz(7.3240, 4.5809, 29.7704)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E97 #978E25
analogous
#256797 #252E97 #552597
triadic
#252E97 #97252E #2E9725
tetradic
#252E97 #972567 #978E25 #259755
square
#252E97 #972567 #978E25 #259755
split-complementary
#252E97 #975525 #679725
monochromatic
#0D1035 #191F66 #252E97 #313DC8 #5F68D8

Accessibility & contrast

On white

10.96
#252E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#252E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E97
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E97#FFFFFF#000000##FFFFFF
##252E971.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252e97;
/* rgb */ color: rgb(37, 46, 151);
/* oklch */ color: oklch(37.2% 0.169 271.3);
Tailwind
colors: {
  custom: {
    50: '#7267b7',
    500: '#252e97',
    950: '#000000',
  },
}
SCSS
$custom: #252e97;
$custom-light: #7267b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252e97",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 235.263,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37166,
    "c": 0.16855,
    "h": 271.3
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#252E97
secondary
#BDB55B
accent
#D744E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252E97

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

Preview Lab → · Contrast checker → · Palette generator →

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