#252791#252791

#252791 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.169 H 272.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#252791
RGBrgb(37, 39, 145)
HSLhsl(239, 59%, 36%)
HSVhsv(239, 74%, 57%)
CMYKcmyk(74.5%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.30, 36.10, -58.18)
CIE-LCHlch(23.30, 68.47, 301.82°)
OKLaboklab(35.39% 0.0086 -0.1683)
OKLCHoklch(35.39% 0.169 272.9)
XYZxyz(6.5976, 3.8880, 27.1853)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252791 #918F25
analogous
#255D91 #252791 #592591
triadic
#252791 #912527 #279125
tetradic
#252791 #91255D #918F25 #259159
square
#252791 #91255D #918F25 #259159
split-complementary
#252791 #915925 #5D9125
monochromatic
#0C0D2F #191A60 #252791 #3134C2 #5B5DD5

Accessibility & contrast

On white

11.81
#252791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#252791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252791
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252791#FFFFFF#000000##FFFFFF
##2527911.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252791;
/* rgb */ color: rgb(37, 39, 145);
/* oklch */ color: oklch(35.4% 0.169 272.9);
Tailwind
colors: {
  custom: {
    50: '#7162b2',
    500: '#252791',
    950: '#000000',
  },
}
SCSS
$custom: #252791;
$custom-light: #7162b2;
$custom-dark: #000000;
JSON
{
  "hex": "#252791",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 238.889,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.16854,
    "h": 272.9
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#252791
secondary
#BAB858
accent
#E045E3
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252791

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

Preview Lab → · Contrast checker → · Palette generator →

#252791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva