#252D99#252D99

#252D99 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.172 H 271.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#252D99
RGBrgb(37, 45, 153)
HSLhsl(236, 61%, 37%)
HSVhsv(236, 76%, 60%)
CMYKcmyk(75.8%, 70.6%, 0%, 40%)
CIE-LABlab(25.47, 35.22, -59.53)
CIE-LCHlch(25.47, 69.17, 300.61°)
OKLaboklab(37.2% 0.0041 -0.1723)
OKLCHoklch(37.2% 0.172 271.4)
XYZxyz(7.4492, 4.5692, 30.6202)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D99 #999125
analogous
#256799 #252D99 #572599
triadic
#252D99 #99252D #2D9925
tetradic
#252D99 #992567 #999125 #259957
square
#252D99 #992567 #999125 #259957
split-complementary
#252D99 #995725 #679925
monochromatic
#0D1036 #191F68 #252D99 #313BCA #6068D9

Accessibility & contrast

On white

10.97
#252D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#252D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D99
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D99#FFFFFF#000000##FFFFFF
##252D991.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252d99;
/* rgb */ color: rgb(37, 45, 153);
/* oklch */ color: oklch(37.2% 0.172 271.4);
Tailwind
colors: {
  custom: {
    50: '#7366b8',
    500: '#252d99',
    950: '#000000',
  },
}
SCSS
$custom: #252d99;
$custom-light: #7366b8;
$custom-dark: #000000;
JSON
{
  "hex": "#252d99",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 235.862,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37201,
    "c": 0.17231,
    "h": 271.4
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#252D99
secondary
#BEB75C
accent
#D944E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252D99

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

Preview Lab → · Contrast checker → · Palette generator →

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