#252282#252282

#252282 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.154 H 275.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#252282
RGBrgb(37, 34, 130)
HSLhsl(242, 59%, 32%)
HSVhsv(242, 74%, 51%)
CMYKcmyk(71.5%, 73.8%, 0%, 49%)
CIE-LABlab(20.63, 33.89, -53.20)
CIE-LCHlch(20.63, 63.08, 302.50°)
OKLaboklab(33.02% 0.014 -0.1538)
OKLCHoklch(33.02% 0.154 275.2)
XYZxyz(5.3629, 3.1486, 21.4399)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252282 #7F8222
analogous
#224F82 #252282 #552282
triadic
#252282 #822522 #228225
tetradic
#252282 #82224F #7F8222 #228255
square
#252282 #82224F #7F8222 #228255
split-complementary
#252282 #825522 #4F8222
monochromatic
#090921 #171551 #252282 #332FB3 #524ED1

Accessibility & contrast

On white

12.89
#252282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#252282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252282
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252282#FFFFFF#000000##FFFFFF
##2522821.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252282;
/* rgb */ color: rgb(37, 34, 130);
/* oklch */ color: oklch(33.0% 0.154 275.2);
Tailwind
colors: {
  custom: {
    50: '#6e5ea7',
    500: '#252282',
    950: '#000000',
  },
}
SCSS
$custom: #252282;
$custom-light: #6e5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#252282",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 241.875,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33015,
    "c": 0.15441,
    "h": 275.2
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#252282
secondary
#B1B44C
accent
#E246DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #252282

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

Preview Lab → · Contrast checker → · Palette generator →

#252282 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva