#252B87#252B87

#252B87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.151 H 272.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#252B87
RGBrgb(37, 43, 135)
HSLhsl(236, 57%, 34%)
HSVhsv(236, 73%, 53%)
CMYKcmyk(72.6%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.24, 29.95, -52.06)
CIE-LCHlch(23.24, 60.06, 299.91°)
OKLaboklab(35.05% 0.0073 -0.1504)
OKLCHoklch(35.05% 0.151 272.8)
XYZxyz(5.9985, 3.8698, 23.3478)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B87 #878125
analogous
#255C87 #252B87 #502587
triadic
#252B87 #87252B #2B8725
tetradic
#252B87 #87255C #878125 #258750
square
#252B87 #87255C #878125 #258750
split-complementary
#252B87 #875025 #5C8725
monochromatic
#0B0C27 #181C57 #252B87 #323AB7 #565DD1

Accessibility & contrast

On white

11.84
#252B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#252B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B87
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B87#FFFFFF#000000##FFFFFF
##252B871.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252b87;
/* rgb */ color: rgb(37, 43, 135);
/* oklch */ color: oklch(35.0% 0.151 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e64ab',
    500: '#252b87',
    950: '#000000',
  },
}
SCSS
$custom: #252b87;
$custom-light: #6e64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252b87",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 236.327,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.15061,
    "h": 272.8
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#252B87
secondary
#B5AF53
accent
#D748E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #252B87

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

Preview Lab → · Contrast checker → · Palette generator →

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