#252EA5#252EA5

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

Color values

HEX#252EA5
RGBrgb(37, 46, 165)
HSLhsl(236, 63%, 40%)
HSVhsv(236, 78%, 65%)
CMYKcmyk(77.6%, 72.1%, 0%, 35.3%)
CIE-LABlab(26.91, 38.88, -64.46)
CIE-LCHlch(26.91, 75.28, 301.10°)
OKLaboklab(38.61% 0.0021 -0.1866)
OKLCHoklch(38.61% 0.187 270.6)
XYZxyz(8.5292, 5.0630, 36.1178)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252EA5 #A59C25
analogous
#256EA5 #252EA5 #5C25A5
triadic
#252EA5 #A5252E #2EA525
tetradic
#252EA5 #A5256E #A59C25 #25A55C
square
#252EA5 #A5256E #A59C25 #25A55C
split-complementary
#252EA5 #A55C25 #6EA525
monochromatic
#0F1241 #1A2073 #252EA5 #3540D2 #6770DD

Accessibility & contrast

On white

10.43
#252EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252EA5
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252EA5#FFFFFF#000000##FFFFFF
##252EA51.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #252ea5;
/* rgb */ color: rgb(37, 46, 165);
/* oklch */ color: oklch(38.6% 0.187 270.6);
Tailwind
colors: {
  custom: {
    50: '#7667c1',
    500: '#252ea5',
    950: '#000000',
  },
}
SCSS
$custom: #252ea5;
$custom-light: #7667c1;
$custom-dark: #000000;
JSON
{
  "hex": "#252ea5",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 235.781,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38605,
    "c": 0.18664,
    "h": 270.6
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#252EA5
secondary
#C3BC63
accent
#DB41E6
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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