#252196#252196

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

Color values

HEX#252196
RGBrgb(37, 33, 150)
HSLhsl(242, 64%, 36%)
HSVhsv(242, 78%, 59%)
CMYKcmyk(75.3%, 78%, 0%, 41.2%)
CIE-LABlab(22.59, 41.32, -62.44)
CIE-LCHlch(22.59, 74.87, 303.50°)
OKLaboklab(35.05% 0.0106 -0.1807)
OKLCHoklch(35.05% 0.181 273.3)
XYZxyz(6.8100, 3.6823, 29.2001)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252196 #929621
analogous
#215796 #252196 #5F2196
triadic
#252196 #962521 #219625
tetradic
#252196 #962157 #929621 #21965F
square
#252196 #962157 #929621 #21965F
split-complementary
#252196 #965F21 #579621
monochromatic
#0C0B32 #191664 #252196 #312CC8 #5C57DA

Accessibility & contrast

On white

12.09
#252196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252196
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252196#FFFFFF#000000##FFFFFF
##2521961.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252196;
/* rgb */ color: rgb(37, 33, 150);
/* oklch */ color: oklch(35.1% 0.181 273.3);
Tailwind
colors: {
  custom: {
    50: '#735eb6',
    500: '#252196',
    950: '#000000',
  },
}
SCSS
$custom: #252196;
$custom-light: #735eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#252196",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 242.051,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35053,
    "c": 0.18097,
    "h": 273.3
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#252196
secondary
#BABE55
accent
#E741E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #252196

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

Preview Lab → · Contrast checker → · Palette generator →

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