#252C77#252C77

#252C77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.127 H 273.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#252C77
RGBrgb(37, 44, 119)
HSLhsl(235, 53%, 31%)
HSVhsv(235, 69%, 47%)
CMYKcmyk(68.9%, 63%, 0%, 53.3%)
CIE-LABlab(22.04, 23.29, -43.91)
CIE-LCHlch(22.04, 49.71, 297.94°)
OKLaboklab(33.72% 0.0075 -0.1265)
OKLCHoklch(33.72% 0.127 273.4)
XYZxyz(4.9923, 3.5261, 17.8667)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C77 #777025
analogous
#255577 #252C77 #472577
triadic
#252C77 #77252C #2C7725
tetradic
#252C77 #772555 #777025 #257747
square
#252C77 #772555 #777025 #257747
split-complementary
#252C77 #774725 #557725
monochromatic
#08091A #161B48 #252C77 #343DA6 #4E59C8

Accessibility & contrast

On white

12.31
#252C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#252C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C77
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C77#FFFFFF#000000##FFFFFF
##252C771.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252c77;
/* rgb */ color: rgb(37, 44, 119);
/* oklch */ color: oklch(33.7% 0.127 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b659f',
    500: '#252c77',
    950: '#000000',
  },
}
SCSS
$custom: #252c77;
$custom-light: #6b659f;
$custom-dark: #000000;
JSON
{
  "hex": "#252c77",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 234.878,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33719,
    "c": 0.12675,
    "h": 273.4
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#252C77
secondary
#A9A24E
accent
#D04CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #252C77

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

Preview Lab → · Contrast checker → · Palette generator →

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