#252F89#252F89

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

Color values

HEX#252F89
RGBrgb(37, 47, 137)
HSLhsl(234, 57%, 34%)
HSVhsv(234, 73%, 54%)
CMYKcmyk(73%, 65.7%, 0%, 46.3%)
CIE-LABlab(24.42, 28.04, -51.36)
CIE-LCHlch(24.42, 58.52, 298.63°)
OKLaboklab(35.97% 0.0043 -0.1484)
OKLCHoklch(35.97% 0.148 271.7)
XYZxyz(6.2933, 4.2319, 24.1472)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F89 #897F25
analogous
#256189 #252F89 #4D2589
triadic
#252F89 #89252F #2F8925
tetradic
#252F89 #892561 #897F25 #25894D
square
#252F89 #892561 #897F25 #25894D
split-complementary
#252F89 #894D25 #618925
monochromatic
#0B0E29 #181E59 #252F89 #3240B9 #5763D2

Accessibility & contrast

On white

11.37
#252F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#252F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F89
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F89#FFFFFF#000000##FFFFFF
##252F891.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252f89;
/* rgb */ color: rgb(37, 47, 137);
/* oklch */ color: oklch(36.0% 0.148 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f67ac',
    500: '#252f89',
    950: '#000000',
  },
}
SCSS
$custom: #252f89;
$custom-light: #6f67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#252f89",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 234,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35972,
    "c": 0.14843,
    "h": 271.7
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#252F89
secondary
#B6AC54
accent
#D147E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252F89

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

Preview Lab → · Contrast checker → · Palette generator →

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