#252786#252786

#252786 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.154 H 273.8°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#252786
RGBrgb(37, 39, 134)
HSLhsl(239, 57%, 34%)
HSVhsv(239, 72%, 53%)
CMYKcmyk(72.4%, 70.9%, 0%, 47.5%)
CIE-LABlab(22.18, 32.18, -53.17)
CIE-LCHlch(22.18, 62.15, 301.18°)
OKLaboklab(34.25% 0.0102 -0.1537)
OKLCHoklch(34.25% 0.154 273.8)
XYZxyz(5.7901, 3.5650, 22.9326)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252786 #868425
analogous
#255786 #252786 #532586
triadic
#252786 #862527 #278625
tetradic
#252786 #862557 #868425 #258653
square
#252786 #862557 #868425 #258653
split-complementary
#252786 #865325 #578625
monochromatic
#0B0B26 #181956 #252786 #3235B6 #5558D0

Accessibility & contrast

On white

12.26
#252786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#252786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252786
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252786#FFFFFF#000000##FFFFFF
##2527861.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252786;
/* rgb */ color: rgb(37, 39, 134);
/* oklch */ color: oklch(34.3% 0.154 273.8);
Tailwind
colors: {
  custom: {
    50: '#6f62aa',
    500: '#252786',
    950: '#000000',
  },
}
SCSS
$custom: #252786;
$custom-light: #6f62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#252786",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 238.763,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3425,
    "c": 0.15403,
    "h": 273.8
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#252786
secondary
#B4B252
accent
#DD48E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252786

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

Preview Lab → · Contrast checker → · Palette generator →

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