#252CA7#252CA7

#252CA7 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.191 H 270.8°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#252CA7
RGBrgb(37, 44, 167)
HSLhsl(237, 64%, 40%)
HSVhsv(237, 78%, 65%)
CMYKcmyk(77.8%, 73.7%, 0%, 34.5%)
CIE-LABlab(26.69, 40.78, -66.04)
CIE-LCHlch(26.69, 77.62, 301.70°)
OKLaboklab(38.51% 0.0027 -0.1912)
OKLCHoklch(38.51% 0.191 270.8)
XYZxyz(8.6363, 4.9837, 37.0585)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252CA7 #A7A025
analogous
#256DA7 #252CA7 #5F25A7
triadic
#252CA7 #A7252C #2CA725
tetradic
#252CA7 #A7256D #A7A025 #25A75F
square
#252CA7 #A7256D #A7A025 #25A75F
split-complementary
#252CA7 #A75F25 #6DA725
monochromatic
#0F1243 #1A1F75 #252CA7 #373FD3 #696FDE

Accessibility & contrast

On white

10.52
#252CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#252CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252CA7
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252CA7#FFFFFF#000000##FFFFFF
##252CA71.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #252ca7;
/* rgb */ color: rgb(37, 44, 167);
/* oklch */ color: oklch(38.5% 0.191 270.8);
Tailwind
colors: {
  custom: {
    50: '#7666c2',
    500: '#252ca7',
    950: '#000000',
  },
}
SCSS
$custom: #252ca7;
$custom-light: #7666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252ca7",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 236.769,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.38506,
    "c": 0.19124,
    "h": 270.8
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#252CA7
secondary
#C4BF64
accent
#DE41E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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