#252197#252197

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

Color values

HEX#252197
RGBrgb(37, 33, 151)
HSLhsl(242, 64%, 36%)
HSVhsv(242, 78%, 59%)
CMYKcmyk(75.5%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.70, 41.66, -62.87)
CIE-LCHlch(22.70, 75.42, 303.53°)
OKLaboklab(35.17% 0.0103 -0.1819)
OKLCHoklch(35.17% 0.182 273.3)
XYZxyz(6.8909, 3.7147, 29.6260)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252197 #939721
analogous
#215897 #252197 #602197
triadic
#252197 #972521 #219725
tetradic
#252197 #972158 #939721 #219760
square
#252197 #972158 #939721 #219760
split-complementary
#252197 #976021 #589721
monochromatic
#0C0B33 #191665 #252197 #312CC9 #5C58DA

Accessibility & contrast

On white

12.05
#252197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#252197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252197
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252197#FFFFFF#000000##FFFFFF
##2521971.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252197;
/* rgb */ color: rgb(37, 33, 151);
/* oklch */ color: oklch(35.2% 0.182 273.3);
Tailwind
colors: {
  custom: {
    50: '#735fb7',
    500: '#252197',
    950: '#000000',
  },
}
SCSS
$custom: #252197;
$custom-light: #735fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#252197",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 242.034,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35166,
    "c": 0.18219,
    "h": 273.3
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#252197
secondary
#BBBE55
accent
#E741E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #252197

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

Preview Lab → · Contrast checker → · Palette generator →

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