#252DA7#252DA7

#252DA7 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.190 H 270.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#252DA7
RGBrgb(37, 45, 167)
HSLhsl(236, 64%, 40%)
HSVhsv(236, 78%, 65%)
CMYKcmyk(77.8%, 73.1%, 0%, 34.5%)
CIE-LABlab(26.90, 40.19, -65.68)
CIE-LCHlch(26.90, 77.00, 301.46°)
OKLaboklab(38.66% 0.0023 -0.1902)
OKLCHoklch(38.66% 0.19 270.7)
XYZxyz(8.6740, 5.0592, 37.0711)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252DA7 #A79F25
analogous
#256EA7 #252DA7 #5E25A7
triadic
#252DA7 #A7252D #2DA725
tetradic
#252DA7 #A7256E #A79F25 #25A75E
square
#252DA7 #A7256E #A79F25 #25A75E
split-complementary
#252DA7 #A75E25 #6EA725
monochromatic
#0F1243 #1A1F75 #252DA7 #3740D3 #6970DE

Accessibility & contrast

On white

10.44
#252DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#252DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252DA7
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252DA7#FFFFFF#000000##FFFFFF
##252DA71.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #252da7;
/* rgb */ color: rgb(37, 45, 167);
/* oklch */ color: oklch(38.7% 0.190 270.7);
Tailwind
colors: {
  custom: {
    50: '#7667c2',
    500: '#252da7',
    950: '#000000',
  },
}
SCSS
$custom: #252da7;
$custom-light: #7667c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252da7",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 236.308,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.3866,
    "c": 0.1902,
    "h": 270.7
  },
  "luminance": 0.0506
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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