#252B77#252B77

#252B77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.128 H 273.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#252B77
RGBrgb(37, 43, 119)
HSLhsl(236, 53%, 31%)
HSVhsv(236, 69%, 47%)
CMYKcmyk(68.9%, 63.9%, 0%, 53.3%)
CIE-LABlab(21.77, 23.98, -44.35)
CIE-LCHlch(21.77, 50.41, 298.40°)
OKLaboklab(33.52% 0.0084 -0.1278)
OKLCHoklch(33.52% 0.128 273.8)
XYZxyz(4.9555, 3.4525, 17.8544)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B77 #777125
analogous
#255477 #252B77 #482577
triadic
#252B77 #77252B #2B7725
tetradic
#252B77 #772554 #777125 #257748
square
#252B77 #772554 #777125 #257748
split-complementary
#252B77 #774825 #547725
monochromatic
#08091A #161A48 #252B77 #343CA6 #4E57C8

Accessibility & contrast

On white

12.42
#252B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#252B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B77
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B77#FFFFFF#000000##FFFFFF
##252B771.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252b77;
/* rgb */ color: rgb(37, 43, 119);
/* oklch */ color: oklch(33.5% 0.128 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b649f',
    500: '#252b77',
    950: '#000000',
  },
}
SCSS
$custom: #252b77;
$custom-light: #6b649f;
$custom-dark: #000000;
JSON
{
  "hex": "#252b77",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 119
  },
  "hsl": {
    "h": 235.61,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33522,
    "c": 0.12809,
    "h": 273.8
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#252B77
secondary
#A9A34E
accent
#D14CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #252B77

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

Preview Lab → · Contrast checker → · Palette generator →

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