#252187#252187

#252187 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.162 H 274.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#252187
RGBrgb(37, 33, 135)
HSLhsl(242, 61%, 33%)
HSVhsv(242, 76%, 53%)
CMYKcmyk(72.6%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.94, 36.23, -55.83)
CIE-LCHlch(20.94, 66.56, 302.98°)
OKLaboklab(33.4% 0.0137 -0.1614)
OKLCHoklch(33.4% 0.162 274.8)
XYZxyz(5.6785, 3.2298, 23.2411)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252187 #838721
analogous
#215087 #252187 #582187
triadic
#252187 #872521 #218725
tetradic
#252187 #872150 #838721 #218758
square
#252187 #872150 #838721 #218758
split-complementary
#252187 #875821 #508721
monochromatic
#0A0925 #181556 #252187 #322DB8 #544FD4

Accessibility & contrast

On white

12.76
#252187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252187
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252187#FFFFFF#000000##FFFFFF
##2521871.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252187;
/* rgb */ color: rgb(37, 33, 135);
/* oklch */ color: oklch(33.4% 0.162 274.8);
Tailwind
colors: {
  custom: {
    50: '#6f5eab',
    500: '#252187',
    950: '#000000',
  },
}
SCSS
$custom: #252187;
$custom-light: #6f5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#252187",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 242.353,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33396,
    "c": 0.16202,
    "h": 274.8
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#252187
secondary
#B3B74D
accent
#E444DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #252187

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

Preview Lab → · Contrast checker → · Palette generator →

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