#252D97#252D97

#252D97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.170 H 271.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#252D97
RGBrgb(37, 45, 151)
HSLhsl(236, 61%, 37%)
HSVhsv(236, 75%, 59%)
CMYKcmyk(75.5%, 70.2%, 0%, 40.8%)
CIE-LABlab(25.27, 34.50, -58.63)
CIE-LCHlch(25.27, 68.03, 300.47°)
OKLaboklab(37% 0.0043 -0.1696)
OKLCHoklch(37% 0.17 271.5)
XYZxyz(7.2854, 4.5037, 29.7575)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D97 #978F25
analogous
#256697 #252D97 #562597
triadic
#252D97 #97252D #2D9725
tetradic
#252D97 #972566 #978F25 #259756
square
#252D97 #972566 #978F25 #259756
split-complementary
#252D97 #975625 #669725
monochromatic
#0D1035 #191E66 #252D97 #313CC8 #5F67D8

Accessibility & contrast

On white

11.05
#252D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#252D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D97
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D97#FFFFFF#000000##FFFFFF
##252D971.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252d97;
/* rgb */ color: rgb(37, 45, 151);
/* oklch */ color: oklch(37.0% 0.170 271.5);
Tailwind
colors: {
  custom: {
    50: '#7266b7',
    500: '#252d97',
    950: '#000000',
  },
}
SCSS
$custom: #252d97;
$custom-light: #7266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252d97",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 235.789,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.1697,
    "h": 271.5
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#252D97
secondary
#BDB65B
accent
#D944E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252D97

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

Preview Lab → · Contrast checker → · Palette generator →

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