#252286#252286

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

Color values

HEX#252286
RGBrgb(37, 34, 134)
HSLhsl(242, 60%, 33%)
HSVhsv(242, 75%, 53%)
CMYKcmyk(72.4%, 74.6%, 0%, 47.5%)
CIE-LABlab(21.05, 35.29, -55.03)
CIE-LCHlch(21.05, 65.37, 302.67°)
OKLaboklab(33.44% 0.0133 -0.1591)
OKLCHoklch(33.44% 0.16 274.8)
XYZxyz(5.6366, 3.2581, 22.8815)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252286 #838622
analogous
#225186 #252286 #572286
triadic
#252286 #862522 #228625
tetradic
#252286 #862251 #838622 #228657
square
#252286 #862251 #838622 #228657
split-complementary
#252286 #865722 #518622
monochromatic
#0A0924 #181655 #252286 #322EB7 #5450D3

Accessibility & contrast

On white

12.71
#252286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252286
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252286#FFFFFF#000000##FFFFFF
##2522861.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #252286;
/* rgb */ color: rgb(37, 34, 134);
/* oklch */ color: oklch(33.4% 0.160 274.8);
Tailwind
colors: {
  custom: {
    50: '#6f5eaa',
    500: '#252286',
    950: '#000000',
  },
}
SCSS
$custom: #252286;
$custom-light: #6f5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#252286",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 241.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.15965,
    "h": 274.8
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#252286
secondary
#B3B64E
accent
#E345DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #252286

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

Preview Lab → · Contrast checker → · Palette generator →

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