#252EA8#252EA8

#252EA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.190 H 270.5°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#252EA8
RGBrgb(37, 46, 168)
HSLhsl(236, 64%, 40%)
HSVhsv(236, 78%, 66%)
CMYKcmyk(78%, 72.6%, 0%, 34.1%)
CIE-LABlab(27.22, 39.93, -65.76)
CIE-LCHlch(27.22, 76.93, 301.27°)
OKLaboklab(38.92% 0.0017 -0.1904)
OKLCHoklch(38.92% 0.19 270.5)
XYZxyz(8.8054, 5.1735, 37.5727)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252EA8 #A89F25
analogous
#256FA8 #252EA8 #5E25A8
triadic
#252EA8 #A8252E #2EA825
tetradic
#252EA8 #A8256F #A89F25 #25A85E
square
#252EA8 #A8256F #A89F25 #25A85E
split-complementary
#252EA8 #A85E25 #6FA825
monochromatic
#0F1344 #1A2076 #252EA8 #3742D3 #6971DE

Accessibility & contrast

On white

10.32
#252EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#252EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252EA8
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252EA8#FFFFFF#000000##FFFFFF
##252EA81.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #252ea8;
/* rgb */ color: rgb(37, 46, 168);
/* oklch */ color: oklch(38.9% 0.190 270.5);
Tailwind
colors: {
  custom: {
    50: '#7668c3',
    500: '#252ea8',
    950: '#000000',
  },
}
SCSS
$custom: #252ea8;
$custom-light: #7668c3;
$custom-dark: #000000;
JSON
{
  "hex": "#252ea8",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 235.878,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3892,
    "c": 0.19042,
    "h": 270.5
  },
  "luminance": 0.05174
}

Semantic roles & 50–950 ramp

primary
#252EA8
secondary
#C4BE65
accent
#DC41E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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