#252292#252292

#252292 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.175 H 273.6°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#252292
RGBrgb(37, 34, 146)
HSLhsl(242, 62%, 35%)
HSVhsv(242, 77%, 57%)
CMYKcmyk(74.7%, 76.7%, 0%, 42.7%)
CIE-LABlab(22.34, 39.42, -60.37)
CIE-LCHlch(22.34, 72.10, 303.14°)
OKLaboklab(34.75% 0.0109 -0.1747)
OKLCHoklch(34.75% 0.175 273.6)
XYZxyz(6.5216, 3.6120, 27.5421)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252292 #8F9222
analogous
#225792 #252292 #5D2292
triadic
#252292 #922522 #229225
tetradic
#252292 #922257 #8F9222 #22925D
square
#252292 #922257 #8F9222 #22925D
split-complementary
#252292 #925D22 #579222
monochromatic
#0C0B2F #181660 #252292 #322EC4 #5A57D8

Accessibility & contrast

On white

12.19
#252292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252292
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252292#FFFFFF#000000##FFFFFF
##2522921.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252292;
/* rgb */ color: rgb(37, 34, 146);
/* oklch */ color: oklch(34.7% 0.175 273.6);
Tailwind
colors: {
  custom: {
    50: '#725fb3',
    500: '#252292',
    950: '#000000',
  },
}
SCSS
$custom: #252292;
$custom-light: #725fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#252292",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 241.607,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.17501,
    "h": 273.6
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252292

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

Preview Lab → · Contrast checker → · Palette generator →

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