#252F87#252F87

#252F87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.146 H 271.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#252F87
RGBrgb(37, 47, 135)
HSLhsl(234, 57%, 34%)
HSVhsv(234, 73%, 53%)
CMYKcmyk(72.6%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.24, 27.29, -50.41)
CIE-LCHlch(24.24, 57.33, 298.43°)
OKLaboklab(35.78% 0.0044 -0.1456)
OKLCHoklch(35.78% 0.146 271.7)
XYZxyz(6.1512, 4.1750, 23.3987)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F87 #877D25
analogous
#256087 #252F87 #4C2587
triadic
#252F87 #87252F #2F8725
tetradic
#252F87 #872560 #877D25 #25874C
square
#252F87 #872560 #877D25 #25874C
split-complementary
#252F87 #874C25 #608725
monochromatic
#0B0E27 #181E57 #252F87 #3240B7 #5662D1

Accessibility & contrast

On white

11.44
#252F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#252F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F87
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F87#FFFFFF#000000##FFFFFF
##252F871.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252f87;
/* rgb */ color: rgb(37, 47, 135);
/* oklch */ color: oklch(35.8% 0.146 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e67ab',
    500: '#252f87',
    950: '#000000',
  },
}
SCSS
$custom: #252f87;
$custom-light: #6e67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252f87",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 233.878,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35782,
    "c": 0.14565,
    "h": 271.7
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#252F87
secondary
#B5AB53
accent
#D148E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252F87

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

Preview Lab → · Contrast checker → · Palette generator →

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