#252A80#252A80

#252A80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.142 H 273.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#252A80
RGBrgb(37, 42, 128)
HSLhsl(237, 55%, 32%)
HSVhsv(237, 71%, 50%)
CMYKcmyk(71.1%, 67.2%, 0%, 49.8%)
CIE-LABlab(22.33, 28.02, -49.15)
CIE-LCHlch(22.33, 56.58, 299.69°)
OKLaboklab(34.18% 0.0087 -0.1419)
OKLCHoklch(34.18% 0.142 273.5)
XYZxyz(5.4859, 3.6072, 20.8250)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A80 #807B25
analogous
#255880 #252A80 #4D2580
triadic
#252A80 #80252A #2A8025
tetradic
#252A80 #802558 #807B25 #25804D
square
#252A80 #802558 #807B25 #25804D
split-complementary
#252A80 #804D25 #588025
monochromatic
#0A0B21 #171A51 #252A80 #333AAF #5259CD

Accessibility & contrast

On white

12.20
#252A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#252A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A80
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A80#FFFFFF#000000##FFFFFF
##252A801.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252a80;
/* rgb */ color: rgb(37, 42, 128);
/* oklch */ color: oklch(34.2% 0.142 273.5);
Tailwind
colors: {
  custom: {
    50: '#6d63a6',
    500: '#252a80',
    950: '#000000',
  },
}
SCSS
$custom: #252a80;
$custom-light: #6d63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#252a80",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 236.703,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34182,
    "c": 0.14218,
    "h": 273.5
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#252A80
secondary
#B1AC50
accent
#D649DE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #252A80

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

Preview Lab → · Contrast checker → · Palette generator →

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