#252986#252986

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

Color values

HEX#252986
RGBrgb(37, 41, 134)
HSLhsl(238, 57%, 34%)
HSVhsv(238, 72%, 53%)
CMYKcmyk(72.4%, 69.4%, 0%, 47.5%)
CIE-LABlab(22.65, 30.89, -52.39)
CIE-LCHlch(22.65, 60.82, 300.52°)
OKLaboklab(34.59% 0.0088 -0.1514)
OKLCHoklch(34.59% 0.152 273.3)
XYZxyz(5.8575, 3.6999, 22.9551)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252986 #868225
analogous
#255986 #252986 #512586
triadic
#252986 #862529 #298625
tetradic
#252986 #862559 #868225 #258651
square
#252986 #862559 #868225 #258651
split-complementary
#252986 #865125 #598625
monochromatic
#0B0C26 #181A56 #252986 #3238B6 #555AD0

Accessibility & contrast

On white

12.07
#252986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252986
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252986#FFFFFF#000000##FFFFFF
##2529861.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252986;
/* rgb */ color: rgb(37, 41, 134);
/* oklch */ color: oklch(34.6% 0.152 273.3);
Tailwind
colors: {
  custom: {
    50: '#6e63aa',
    500: '#252986',
    950: '#000000',
  },
}
SCSS
$custom: #252986;
$custom-light: #6e63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#252986",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 237.526,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34594,
    "c": 0.15166,
    "h": 273.3
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#252986
secondary
#B4B052
accent
#DA48E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252986

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

Preview Lab → · Contrast checker → · Palette generator →

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