#252A82#252A82

#252A82 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.145 H 273.4°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#252A82
RGBrgb(37, 42, 130)
HSLhsl(237, 56%, 33%)
HSVhsv(237, 72%, 51%)
CMYKcmyk(71.5%, 67.7%, 0%, 49%)
CIE-LABlab(22.52, 28.76, -50.10)
CIE-LCHlch(22.52, 57.77, 299.86°)
OKLaboklab(34.38% 0.0085 -0.1447)
OKLCHoklch(34.38% 0.145 273.4)
XYZxyz(5.6188, 3.6604, 21.5252)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A82 #827D25
analogous
#255982 #252A82 #4E2582
triadic
#252A82 #82252A #2A8225
tetradic
#252A82 #822559 #827D25 #25824E
square
#252A82 #822559 #827D25 #25824E
split-complementary
#252A82 #824E25 #598225
monochromatic
#0A0B23 #171B52 #252A82 #3339B2 #535ACE

Accessibility & contrast

On white

12.12
#252A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#252A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A82
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A82#FFFFFF#000000##FFFFFF
##252A821.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252a82;
/* rgb */ color: rgb(37, 42, 130);
/* oklch */ color: oklch(34.4% 0.145 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d64a7',
    500: '#252a82',
    950: '#000000',
  },
}
SCSS
$custom: #252a82;
$custom-light: #6d64a7;
$custom-dark: #000000;
JSON
{
  "hex": "#252a82",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 236.774,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34377,
    "c": 0.14496,
    "h": 273.4
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#252A82
secondary
#B2AD50
accent
#D749DF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252A82

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

Preview Lab → · Contrast checker → · Palette generator →

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