#252198#252198

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

Color values

HEX#252198
RGBrgb(37, 33, 152)
HSLhsl(242, 64%, 36%)
HSVhsv(242, 78%, 60%)
CMYKcmyk(75.7%, 78.3%, 0%, 40.4%)
CIE-LABlab(22.82, 41.99, -63.29)
CIE-LCHlch(22.82, 75.96, 303.56°)
OKLaboklab(35.28% 0.0101 -0.1831)
OKLCHoklch(35.28% 0.183 273.2)
XYZxyz(6.9724, 3.7473, 30.0555)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252198 #949821
analogous
#215998 #252198 #612198
triadic
#252198 #982521 #219825
tetradic
#252198 #982159 #949821 #219861
square
#252198 #982159 #949821 #219861
split-complementary
#252198 #986121 #599821
monochromatic
#0D0B33 #191666 #252198 #312CCA #5D59DB

Accessibility & contrast

On white

12.00
#252198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252198
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252198#FFFFFF#000000##FFFFFF
##2521981.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252198;
/* rgb */ color: rgb(37, 33, 152);
/* oklch */ color: oklch(35.3% 0.183 273.2);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#252198',
    950: '#000000',
  },
}
SCSS
$custom: #252198;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#252198",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 242.017,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.18343,
    "h": 273.2
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#252198
secondary
#BBBF56
accent
#E740E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #252198

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

Preview Lab → · Contrast checker → · Palette generator →

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