#252DA8#252DA8

#252DA8 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.191 H 270.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#252DA8
RGBrgb(37, 45, 168)
HSLhsl(236, 64%, 40%)
HSVhsv(236, 78%, 66%)
CMYKcmyk(78%, 73.2%, 0%, 34.1%)
CIE-LABlab(27.01, 40.53, -66.11)
CIE-LCHlch(27.01, 77.55, 301.51°)
OKLaboklab(38.77% 0.0021 -0.1914)
OKLCHoklch(38.77% 0.191 270.6)
XYZxyz(8.7668, 5.0963, 37.5598)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252DA8 #A8A025
analogous
#256EA8 #252DA8 #5F25A8
triadic
#252DA8 #A8252D #2DA825
tetradic
#252DA8 #A8256E #A8A025 #25A85F
square
#252DA8 #A8256E #A8A025 #25A85F
split-complementary
#252DA8 #A85F25 #6EA825
monochromatic
#0F1244 #1A2076 #252DA8 #3741D3 #6970DE

Accessibility & contrast

On white

10.40
#252DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#252DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252DA8
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252DA8#FFFFFF#000000##FFFFFF
##252DA81.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #252da8;
/* rgb */ color: rgb(37, 45, 168);
/* oklch */ color: oklch(38.8% 0.191 270.6);
Tailwind
colors: {
  custom: {
    50: '#7767c3',
    500: '#252da8',
    950: '#000000',
  },
}
SCSS
$custom: #252da8;
$custom-light: #7767c3;
$custom-dark: #000000;
JSON
{
  "hex": "#252da8",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 236.336,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38766,
    "c": 0.19146,
    "h": 270.6
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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