#252687#252687

#252687 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.157 H 273.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#252687
RGBrgb(37, 38, 135)
HSLhsl(239, 57%, 34%)
HSVhsv(239, 73%, 53%)
CMYKcmyk(72.6%, 71.9%, 0%, 47.1%)
CIE-LABlab(22.05, 33.17, -54.01)
CIE-LCHlch(22.05, 63.39, 301.56°)
OKLaboklab(34.19% 0.0107 -0.1561)
OKLCHoklch(34.19% 0.157 273.9)
XYZxyz(5.8278, 3.5282, 23.2909)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252687 #878625
analogous
#255787 #252687 #552587
triadic
#252687 #872526 #268725
tetradic
#252687 #872557 #878625 #258755
square
#252687 #872557 #878625 #258755
split-complementary
#252687 #875525 #578725
monochromatic
#0B0B27 #181857 #252687 #3234B7 #5657D1

Accessibility & contrast

On white

12.31
#252687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252687
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252687#FFFFFF#000000##FFFFFF
##2526871.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252687;
/* rgb */ color: rgb(37, 38, 135);
/* oklch */ color: oklch(34.2% 0.157 273.9);
Tailwind
colors: {
  custom: {
    50: '#6f61ab',
    500: '#252687',
    950: '#000000',
  },
}
SCSS
$custom: #252687;
$custom-light: #6f61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252687",
  "rgb": {
    "r": 37,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 239.388,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34186,
    "c": 0.15651,
    "h": 273.9
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#252687
secondary
#B5B453
accent
#DF48E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252687

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

Preview Lab → · Contrast checker → · Palette generator →

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