#252D78#252D78

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

Color values

HEX#252D78
RGBrgb(37, 45, 120)
HSLhsl(234, 53%, 31%)
HSVhsv(234, 69%, 47%)
CMYKcmyk(69.2%, 62.5%, 0%, 52.9%)
CIE-LABlab(22.39, 22.98, -43.97)
CIE-LCHlch(22.39, 49.61, 297.59°)
OKLaboklab(34.01% 0.0066 -0.1267)
OKLCHoklch(34.01% 0.127 273)
XYZxyz(5.0904, 3.6257, 18.1972)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D78 #787025
analogous
#255678 #252D78 #462578
triadic
#252D78 #78252D #2D7825
tetradic
#252D78 #782556 #787025 #257846
square
#252D78 #782556 #787025 #257846
split-complementary
#252D78 #784625 #567825
monochromatic
#080A1A #171B49 #252D78 #333FA7 #4F5AC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##252D78#FFFFFF#000000##FFFFFF
##252D781.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)
#00397A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252d78;
/* rgb */ color: rgb(37, 45, 120);
/* oklch */ color: oklch(34.0% 0.127 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#252d78',
    950: '#000000',
  },
}
SCSS
$custom: #252d78;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252d78",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 234.217,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34008,
    "c": 0.12686,
    "h": 273
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#252D78
secondary
#AAA24E
accent
#CE4CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #252D78

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

Preview Lab → · Contrast checker → · Palette generator →

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