#252E87#252E87

#252E87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.147 H 272.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#252E87
RGBrgb(37, 46, 135)
HSLhsl(234, 57%, 34%)
HSVhsv(234, 73%, 53%)
CMYKcmyk(72.6%, 65.9%, 0%, 47.1%)
CIE-LABlab(23.99, 27.96, -50.83)
CIE-LCHlch(23.99, 58.01, 298.81°)
OKLaboklab(35.6% 0.0052 -0.1468)
OKLCHoklch(35.6% 0.147 272)
XYZxyz(6.1116, 4.0960, 23.3855)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E87 #877E25
analogous
#255F87 #252E87 #4D2587
triadic
#252E87 #87252E #2E8725
tetradic
#252E87 #87255F #877E25 #25874D
square
#252E87 #87255F #877E25 #25874D
split-complementary
#252E87 #874D25 #5F8725
monochromatic
#0B0D27 #181E57 #252E87 #323EB7 #5661D1

Accessibility & contrast

On white

11.54
#252E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#252E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E87
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E87#FFFFFF#000000##FFFFFF
##252E871.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252e87;
/* rgb */ color: rgb(37, 46, 135);
/* oklch */ color: oklch(35.6% 0.147 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e66ab',
    500: '#252e87',
    950: '#000000',
  },
}
SCSS
$custom: #252e87;
$custom-light: #6e66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252e87",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 234.49,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35595,
    "c": 0.1469,
    "h": 272
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#252E87
secondary
#B5AC53
accent
#D248E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252E87

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

Preview Lab → · Contrast checker → · Palette generator →

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