#252C7B#252C7B

#252C7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.133 H 273.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#252C7B
RGBrgb(37, 44, 123)
HSLhsl(235, 54%, 31%)
HSVhsv(235, 70%, 48%)
CMYKcmyk(69.9%, 64.2%, 0%, 51.8%)
CIE-LABlab(22.39, 24.80, -45.89)
CIE-LCHlch(22.39, 52.16, 298.39°)
OKLaboklab(34.09% 0.0074 -0.1323)
OKLCHoklch(34.09% 0.133 273.2)
XYZxyz(5.2376, 3.6243, 19.1586)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C7B #7B7425
analogous
#25577B #252C7B #49257B
triadic
#252C7B #7B252C #2C7B25
tetradic
#252C7B #7B2557 #7B7425 #257B49
square
#252C7B #7B2557 #7B7425 #257B49
split-complementary
#252C7B #7B4925 #577B25
monochromatic
#090A1D #171B4C #252C7B #333DAA #505ACA

Accessibility & contrast

On white

12.17
#252C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#252C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C7B
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C7B#FFFFFF#000000##FFFFFF
##252C7B1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252c7b;
/* rgb */ color: rgb(37, 44, 123);
/* oklch */ color: oklch(34.1% 0.133 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c65a2',
    500: '#252c7b',
    950: '#000000',
  },
}
SCSS
$custom: #252c7b;
$custom-light: #6c65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#252c7b",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 235.116,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34086,
    "c": 0.13254,
    "h": 273.2
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#252C7B
secondary
#ADA64F
accent
#D14BDD
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #252C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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