#252FB1#252FB1

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

Color values

HEX#252FB1
RGBrgb(37, 47, 177)
HSLhsl(236, 65%, 42%)
HSVhsv(236, 79%, 69%)
CMYKcmyk(79.1%, 73.4%, 0%, 30.6%)
CIE-LABlab(28.38, 42.47, -69.25)
CIE-LCHlch(28.38, 81.24, 301.52°)
OKLaboklab(40.03% 0 -0.2006)
OKLCHoklch(40.03% 0.201 270)
XYZxyz(9.7126, 5.5996, 42.1554)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252FB1 #B1A725
analogous
#2575B1 #252FB1 #6125B1
triadic
#252FB1 #B1252F #2FB125
tetradic
#252FB1 #B12575 #B1A725 #25B161
square
#252FB1 #B12575 #B1A725 #25B161
split-complementary
#252FB1 #B16125 #75B125
monochromatic
#10144C #1A227E #252FB1 #3D48D6 #6F78E1

Accessibility & contrast

On white

9.90
#252FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#252FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252FB1
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252FB1#FFFFFF#000000##FFFFFF
##252FB11.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #252fb1;
/* rgb */ color: rgb(37, 47, 177);
/* oklch */ color: oklch(40.0% 0.201 270.0);
Tailwind
colors: {
  custom: {
    50: '#7969ca',
    500: '#252fb1',
    950: '#000000',
  },
}
SCSS
$custom: #252fb1;
$custom-light: #7969ca;
$custom-dark: #000000;
JSON
{
  "hex": "#252fb1",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 235.714,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40027,
    "c": 0.20058,
    "h": 270
  },
  "luminance": 0.05601
}

Semantic roles & 50–950 ramp

primary
#252FB1
secondary
#C8C16A
accent
#DC3FE8
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #252FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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