#252182#252182

#252182 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.156 H 275.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#252182
RGBrgb(37, 33, 130)
HSLhsl(242, 60%, 32%)
HSVhsv(242, 75%, 51%)
CMYKcmyk(71.5%, 74.6%, 0%, 49%)
CIE-LABlab(20.41, 34.50, -53.56)
CIE-LCHlch(20.41, 63.71, 302.79°)
OKLaboklab(32.86% 0.0147 -0.1548)
OKLCHoklch(32.86% 0.156 275.4)
XYZxyz(5.3347, 3.0922, 21.4305)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252182 #7E8221
analogous
#214E82 #252182 #562182
triadic
#252182 #822521 #218225
tetradic
#252182 #82214E #7E8221 #218256
square
#252182 #82214E #7E8221 #218256
split-complementary
#252182 #825621 #4E8221
monochromatic
#090820 #171551 #252182 #332DB3 #514CD2

Accessibility & contrast

On white

12.97
#252182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#252182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252182
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252182#FFFFFF#000000##FFFFFF
##2521821.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #252182;
/* rgb */ color: rgb(37, 33, 130);
/* oklch */ color: oklch(32.9% 0.156 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e5da7',
    500: '#252182',
    950: '#000000',
  },
}
SCSS
$custom: #252182;
$custom-light: #6e5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#252182",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 242.474,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32859,
    "c": 0.15551,
    "h": 275.4
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#252182
secondary
#B0B44A
accent
#E345DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #252182

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

Preview Lab → · Contrast checker → · Palette generator →

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