#252EA7#252EA7

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

Color values

HEX#252EA7
RGBrgb(37, 46, 167)
HSLhsl(236, 64%, 40%)
HSVhsv(236, 78%, 65%)
CMYKcmyk(77.8%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.12, 39.58, -65.33)
CIE-LCHlch(27.12, 76.38, 301.21°)
OKLaboklab(38.82% 0.0018 -0.1892)
OKLCHoklch(38.82% 0.189 270.5)
XYZxyz(8.7126, 5.1364, 37.0840)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252EA7 #A79E25
analogous
#256FA7 #252EA7 #5D25A7
triadic
#252EA7 #A7252E #2EA725
tetradic
#252EA7 #A7256F #A79E25 #25A75D
square
#252EA7 #A7256F #A79E25 #25A75D
split-complementary
#252EA7 #A75D25 #6FA725
monochromatic
#0F1243 #1A2075 #252EA7 #3741D3 #6971DE

Accessibility & contrast

On white

10.36
#252EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252EA7
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252EA7#FFFFFF#000000##FFFFFF
##252EA71.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252ea7;
/* rgb */ color: rgb(37, 46, 167);
/* oklch */ color: oklch(38.8% 0.189 270.5);
Tailwind
colors: {
  custom: {
    50: '#7668c2',
    500: '#252ea7',
    950: '#000000',
  },
}
SCSS
$custom: #252ea7;
$custom-light: #7668c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252ea7",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 235.846,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.38815,
    "c": 0.18916,
    "h": 270.5
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#252EA7
secondary
#C4BD64
accent
#DB41E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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