#252C7E#252C7E

#252C7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.137 H 273.0°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#252C7E
RGBrgb(37, 44, 126)
HSLhsl(235, 55%, 32%)
HSVhsv(235, 71%, 49%)
CMYKcmyk(70.6%, 65.1%, 0%, 50.6%)
CIE-LABlab(22.66, 25.93, -47.35)
CIE-LCHlch(22.66, 53.99, 298.71°)
OKLaboklab(34.37% 0.0072 -0.1366)
OKLCHoklch(34.37% 0.137 273)
XYZxyz(5.4283, 3.7005, 20.1628)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C7E #7E7725
analogous
#25597E #252C7E #4B257E
triadic
#252C7E #7E252C #2C7E25
tetradic
#252C7E #7E2559 #7E7725 #257E4B
square
#252C7E #7E2559 #7E7725 #257E4B
split-complementary
#252C7E #7E4B25 #597E25
monochromatic
#090B1F #171B4F #252C7E #333DAD #515BCC

Accessibility & contrast

On white

12.07
#252C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#252C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C7E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C7E#FFFFFF#000000##FFFFFF
##252C7E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252c7e;
/* rgb */ color: rgb(37, 44, 126);
/* oklch */ color: oklch(34.4% 0.137 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c65a4',
    500: '#252c7e',
    950: '#000000',
  },
}
SCSS
$custom: #252c7e;
$custom-light: #6c65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#252c7e",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 235.281,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34366,
    "c": 0.13681,
    "h": 273
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#252C7E
secondary
#B0A84F
accent
#D24ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #252C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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