#252199#252199

#252199 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.185 H 273.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#252199
RGBrgb(37, 33, 153)
HSLhsl(242, 65%, 36%)
HSVhsv(242, 78%, 60%)
CMYKcmyk(75.8%, 78.4%, 0%, 40%)
CIE-LABlab(22.93, 42.32, -63.72)
CIE-LCHlch(22.93, 76.50, 303.59°)
OKLaboklab(35.39% 0.0099 -0.1844)
OKLCHoklch(35.39% 0.185 273.1)
XYZxyz(7.0547, 3.7802, 30.4887)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252199 #959921
analogous
#215999 #252199 #612199
triadic
#252199 #992521 #219925
tetradic
#252199 #992159 #959921 #219961
square
#252199 #992159 #959921 #219961
split-complementary
#252199 #996121 #599921
monochromatic
#0D0B34 #191667 #252199 #312CCB #5E59DB

Accessibility & contrast

On white

11.96
#252199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#252199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252199
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252199#FFFFFF#000000##FFFFFF
##2521991.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252199;
/* rgb */ color: rgb(37, 33, 153);
/* oklch */ color: oklch(35.4% 0.185 273.1);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#252199',
    950: '#000000',
  },
}
SCSS
$custom: #252199;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#252199",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 242,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35391,
    "c": 0.18466,
    "h": 273.1
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#252199
secondary
#BCBF56
accent
#E840E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #252199

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

Preview Lab → · Contrast checker → · Palette generator →

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