#252EB2#252EB2

#252EB2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.0% C 0.203 H 270.1°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#252EB2
RGBrgb(37, 46, 178)
HSLhsl(236, 66%, 42%)
HSVhsv(236, 79%, 70%)
CMYKcmyk(79.2%, 74.2%, 0%, 30.2%)
CIE-LABlab(28.28, 43.40, -70.02)
CIE-LCHlch(28.28, 82.38, 301.79°)
OKLaboklab(39.99% 0.0002 -0.2028)
OKLCHoklch(39.99% 0.203 270.1)
XYZxyz(9.7731, 5.5605, 42.6691)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252EB2 #B2A925
analogous
#2575B2 #252EB2 #6225B2
triadic
#252EB2 #B2252E #2EB225
tetradic
#252EB2 #B22575 #B2A925 #25B262
square
#252EB2 #B22575 #B2A925 #25B262
split-complementary
#252EB2 #B26225 #75B225
monochromatic
#10144D #1A217F #252EB2 #3D47D7 #7077E1

Accessibility & contrast

On white

9.94
#252EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#252EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252EB2
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252EB2#FFFFFF#000000##FFFFFF
##252EB21.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #252eb2;
/* rgb */ color: rgb(37, 46, 178);
/* oklch */ color: oklch(40.0% 0.203 270.1);
Tailwind
colors: {
  custom: {
    50: '#7968ca',
    500: '#252eb2',
    950: '#000000',
  },
}
SCSS
$custom: #252eb2;
$custom-light: #7968ca;
$custom-dark: #000000;
JSON
{
  "hex": "#252eb2",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 236.17,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39985,
    "c": 0.20281,
    "h": 270.1
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#252EB2
secondary
#C8C26B
accent
#DE3FE9
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #252EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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