#252D87#252D87

#252D87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.148 H 272.3°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#252D87
RGBrgb(37, 45, 135)
HSLhsl(235, 57%, 34%)
HSVhsv(235, 73%, 53%)
CMYKcmyk(72.6%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.73, 28.63, -51.24)
CIE-LCHlch(23.73, 58.70, 299.19°)
OKLaboklab(35.41% 0.0059 -0.148)
OKLCHoklch(35.41% 0.148 272.3)
XYZxyz(6.0730, 4.0188, 23.3726)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D87 #877F25
analogous
#255E87 #252D87 #4E2587
triadic
#252D87 #87252D #2D8725
tetradic
#252D87 #87255E #877F25 #25874E
square
#252D87 #87255E #877F25 #25874E
split-complementary
#252D87 #874E25 #5E8725
monochromatic
#0B0D27 #181D57 #252D87 #323DB7 #5660D1

Accessibility & contrast

On white

11.64
#252D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#252D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D87
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D87#FFFFFF#000000##FFFFFF
##252D871.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252d87;
/* rgb */ color: rgb(37, 45, 135);
/* oklch */ color: oklch(35.4% 0.148 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e66ab',
    500: '#252d87',
    950: '#000000',
  },
}
SCSS
$custom: #252d87;
$custom-light: #6e66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252d87",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 235.102,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3541,
    "c": 0.14815,
    "h": 272.3
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#252D87
secondary
#B5AD53
accent
#D448E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252D87

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

Preview Lab → · Contrast checker → · Palette generator →

#252D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva