#252181#252181

#252181 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.154 H 275.5°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#252181
RGBrgb(37, 33, 129)
HSLhsl(243, 59%, 32%)
HSVhsv(243, 74%, 51%)
CMYKcmyk(71.3%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.30, 34.15, -53.10)
CIE-LCHlch(20.30, 63.14, 302.74°)
OKLaboklab(32.75% 0.0149 -0.1535)
OKLCHoklch(32.75% 0.154 275.5)
XYZxyz(5.2679, 3.0655, 21.0787)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252181 #7D8121
analogous
#214D81 #252181 #552181
triadic
#252181 #812521 #218125
tetradic
#252181 #81214D #7D8121 #218155
square
#252181 #81214D #7D8121 #218155
split-complementary
#252181 #815521 #4D8121
monochromatic
#090820 #171550 #252181 #332DB2 #514BD1

Accessibility & contrast

On white

13.02
#252181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#252181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252181
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252181#FFFFFF#000000##FFFFFF
##2521811.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252181;
/* rgb */ color: rgb(37, 33, 129);
/* oklch */ color: oklch(32.8% 0.154 275.5);
Tailwind
colors: {
  custom: {
    50: '#6e5da7',
    500: '#252181',
    950: '#000000',
  },
}
SCSS
$custom: #252181;
$custom-light: #6e5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#252181",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 242.5,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32752,
    "c": 0.1542,
    "h": 275.5
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#252181
secondary
#AFB44A
accent
#E245DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #252181

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

Preview Lab → · Contrast checker → · Palette generator →

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