#252D82#252D82

#252D82 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.141 H 272.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#252D82
RGBrgb(37, 45, 130)
HSLhsl(235, 56%, 33%)
HSVhsv(235, 72%, 51%)
CMYKcmyk(71.5%, 65.4%, 0%, 49%)
CIE-LABlab(23.27, 26.76, -48.86)
CIE-LCHlch(23.27, 55.71, 298.71°)
OKLaboklab(34.93% 0.0062 -0.141)
OKLCHoklch(34.93% 0.141 272.5)
XYZxyz(5.7292, 3.8812, 21.5620)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D82 #827A25
analogous
#255B82 #252D82 #4C2582
triadic
#252D82 #82252D #2D8225
tetradic
#252D82 #82255B #827A25 #25824C
square
#252D82 #82255B #827A25 #25824C
split-complementary
#252D82 #824C25 #5B8225
monochromatic
#0A0C23 #171D52 #252D82 #333DB2 #535ECE

Accessibility & contrast

On white

11.82
#252D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#252D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D82
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D82#FFFFFF#000000##FFFFFF
##252D821.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252d82;
/* rgb */ color: rgb(37, 45, 130);
/* oklch */ color: oklch(34.9% 0.141 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d66a7',
    500: '#252d82',
    950: '#000000',
  },
}
SCSS
$custom: #252d82;
$custom-light: #6d66a7;
$custom-dark: #000000;
JSON
{
  "hex": "#252d82",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 234.839,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34932,
    "c": 0.14118,
    "h": 272.5
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#252D82
secondary
#B2AA50
accent
#D249DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #252D82

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

Preview Lab → · Contrast checker → · Palette generator →

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