#252D77#252D77

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

Color values

HEX#252D77
RGBrgb(37, 45, 119)
HSLhsl(234, 53%, 31%)
HSVhsv(234, 69%, 47%)
CMYKcmyk(68.9%, 62.2%, 0%, 53.3%)
CIE-LABlab(22.31, 22.60, -43.47)
CIE-LCHlch(22.31, 49.00, 297.47°)
OKLaboklab(33.92% 0.0066 -0.1252)
OKLCHoklch(33.92% 0.125 273)
XYZxyz(5.0300, 3.6015, 17.8793)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D77 #776F25
analogous
#255677 #252D77 #462577
triadic
#252D77 #77252D #2D7725
tetradic
#252D77 #772556 #776F25 #257746
square
#252D77 #772556 #776F25 #257746
split-complementary
#252D77 #774625 #567725
monochromatic
#080A1A #161B48 #252D77 #343FA6 #4E5AC8

Accessibility & contrast

On white

12.21
#252D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#252D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D77
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D77#FFFFFF#000000##FFFFFF
##252D771.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252d77;
/* rgb */ color: rgb(37, 45, 119);
/* oklch */ color: oklch(33.9% 0.125 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a659f',
    500: '#252d77',
    950: '#000000',
  },
}
SCSS
$custom: #252d77;
$custom-light: #6a659f;
$custom-dark: #000000;
JSON
{
  "hex": "#252d77",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 234.146,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33918,
    "c": 0.1254,
    "h": 273
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#252D77
secondary
#A9A14E
accent
#CE4CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #252D77

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

Preview Lab → · Contrast checker → · Palette generator →

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