#252296#252296

#252296 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.180 H 273.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#252296
RGBrgb(37, 34, 150)
HSLhsl(242, 63%, 36%)
HSVhsv(242, 77%, 59%)
CMYKcmyk(75.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(22.79, 40.77, -62.11)
CIE-LCHlch(22.79, 74.30, 303.28°)
OKLaboklab(35.19% 0.0101 -0.1797)
OKLCHoklch(35.19% 0.18 273.2)
XYZxyz(6.8382, 3.7387, 29.2095)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252296 #939622
analogous
#225996 #252296 #5F2296
triadic
#252296 #962522 #229625
tetradic
#252296 #962259 #939622 #22965F
square
#252296 #962259 #939622 #22965F
split-complementary
#252296 #965F22 #599622
monochromatic
#0C0B32 #191764 #252296 #312DC8 #5C59D9

Accessibility & contrast

On white

12.02
#252296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252296
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252296#FFFFFF#000000##FFFFFF
##2522961.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252296;
/* rgb */ color: rgb(37, 34, 150);
/* oklch */ color: oklch(35.2% 0.180 273.2);
Tailwind
colors: {
  custom: {
    50: '#735fb6',
    500: '#252296',
    950: '#000000',
  },
}
SCSS
$custom: #252296;
$custom-light: #735fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#252296",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 241.552,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35191,
    "c": 0.18,
    "h": 273.2
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#252296
secondary
#BBBE56
accent
#E642E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252296

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

Preview Lab → · Contrast checker → · Palette generator →

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