#252F8D#252F8D

#252F8D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.154 H 271.5°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#252F8D
RGBrgb(37, 47, 141)
HSLhsl(234, 58%, 35%)
HSVhsv(234, 74%, 55%)
CMYKcmyk(73.8%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.79, 29.53, -53.25)
CIE-LCHlch(24.79, 60.89, 299.01°)
OKLaboklab(36.35% 0.004 -0.1539)
OKLCHoklch(36.35% 0.154 271.5)
XYZxyz(6.5856, 4.3488, 25.6865)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F8D #8D8325
analogous
#25638D #252F8D #4F258D
triadic
#252F8D #8D252F #2F8D25
tetradic
#252F8D #8D2563 #8D8325 #258D4F
square
#252F8D #8D2563 #8D8325 #258D4F
split-complementary
#252F8D #8D4F25 #638D25
monochromatic
#0C0F2C #181F5D #252F8D #323FBD #5965D3

Accessibility & contrast

On white

11.23
#252F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#252F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F8D
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F8D#FFFFFF#000000##FFFFFF
##252F8D1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #252f8d;
/* rgb */ color: rgb(37, 47, 141);
/* oklch */ color: oklch(36.4% 0.154 271.5);
Tailwind
colors: {
  custom: {
    50: '#7067af',
    500: '#252f8d',
    950: '#000000',
  },
}
SCSS
$custom: #252f8d;
$custom-light: #7067af;
$custom-dark: #000000;
JSON
{
  "hex": "#252f8d",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 234.231,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36355,
    "c": 0.15394,
    "h": 271.5
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#252F8D
secondary
#B8AF56
accent
#D346E2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #252F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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