#252A76#252A76

#252A76 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.128 H 274.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#252A76
RGBrgb(37, 42, 118)
HSLhsl(236, 52%, 30%)
HSVhsv(236, 69%, 46%)
CMYKcmyk(68.6%, 64.4%, 0%, 53.7%)
CIE-LABlab(21.42, 24.29, -44.28)
CIE-LCHlch(21.42, 50.50, 298.74°)
OKLaboklab(33.24% 0.0093 -0.1276)
OKLCHoklch(33.24% 0.128 274.2)
XYZxyz(4.8598, 3.3568, 17.5279)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A76 #767125
analogous
#255276 #252A76 #482576
triadic
#252A76 #76252A #2A7625
tetradic
#252A76 #762552 #767125 #257648
square
#252A76 #762552 #767125 #257648
split-complementary
#252A76 #764825 #527625
monochromatic
#080919 #161947 #252A76 #343BA5 #4E55C7

Accessibility & contrast

On white

12.56
#252A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#252A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A76
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A76#FFFFFF#000000##FFFFFF
##252A761.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #252a76;
/* rgb */ color: rgb(37, 42, 118);
/* oklch */ color: oklch(33.2% 0.128 274.2);
Tailwind
colors: {
  custom: {
    50: '#6b639e',
    500: '#252a76',
    950: '#000000',
  },
}
SCSS
$custom: #252a76;
$custom-light: #6b639e;
$custom-dark: #000000;
JSON
{
  "hex": "#252a76",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 236.296,
    "s": 52.258,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33235,
    "c": 0.12797,
    "h": 274.2
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#252A76
secondary
#A9A34E
accent
#D34CDC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252A76

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

Preview Lab → · Contrast checker → · Palette generator →

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