#252291#252291

#252291 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.174 H 273.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#252291
RGBrgb(37, 34, 145)
HSLhsl(242, 62%, 35%)
HSVhsv(242, 77%, 57%)
CMYKcmyk(74.5%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.24, 39.07, -59.94)
CIE-LCHlch(22.24, 71.55, 303.10°)
OKLaboklab(34.64% 0.0112 -0.1734)
OKLCHoklch(34.64% 0.174 273.7)
XYZxyz(6.4441, 3.5811, 27.1342)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252291 #8E9122
analogous
#225691 #252291 #5D2291
triadic
#252291 #912522 #229125
tetradic
#252291 #912256 #8E9122 #22915D
square
#252291 #912256 #8E9122 #22915D
split-complementary
#252291 #915D22 #569122
monochromatic
#0C0B2E #18165F #252291 #322EC3 #5A56D7

Accessibility & contrast

On white

12.23
#252291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#252291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252291
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252291#FFFFFF#000000##FFFFFF
##2522911.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252291;
/* rgb */ color: rgb(37, 34, 145);
/* oklch */ color: oklch(34.6% 0.174 273.7);
Tailwind
colors: {
  custom: {
    50: '#725fb2',
    500: '#252291',
    950: '#000000',
  },
}
SCSS
$custom: #252291;
$custom-light: #725fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#252291",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 241.622,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34637,
    "c": 0.17375,
    "h": 273.7
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#252291
secondary
#B9BB53
accent
#E543E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252291

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

Preview Lab → · Contrast checker → · Palette generator →

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