#252882#252882

#252882 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.147 H 273.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#252882
RGBrgb(37, 40, 130)
HSLhsl(238, 56%, 33%)
HSVhsv(238, 72%, 51%)
CMYKcmyk(71.5%, 69.2%, 0%, 49%)
CIE-LABlab(22.02, 30.08, -50.91)
CIE-LCHlch(22.02, 59.13, 300.58°)
OKLaboklab(34.02% 0.01 -0.1471)
OKLCHoklch(34.02% 0.147 273.9)
XYZxyz(5.5497, 3.5221, 21.5021)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252882 #827F25
analogous
#255682 #252882 #512582
triadic
#252882 #822528 #288225
tetradic
#252882 #822556 #827F25 #258251
square
#252882 #822556 #827F25 #258251
split-complementary
#252882 #825125 #568225
monochromatic
#0A0B23 #171952 #252882 #3337B2 #5357CE

Accessibility & contrast

On white

12.32
#252882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#252882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252882
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252882#FFFFFF#000000##FFFFFF
##2528821.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252882;
/* rgb */ color: rgb(37, 40, 130);
/* oklch */ color: oklch(34.0% 0.147 273.9);
Tailwind
colors: {
  custom: {
    50: '#6e62a7',
    500: '#252882',
    950: '#000000',
  },
}
SCSS
$custom: #252882;
$custom-light: #6e62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#252882",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 238.065,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34019,
    "c": 0.14741,
    "h": 273.9
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#252882
secondary
#B2AF50
accent
#DA49DF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252882

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

Preview Lab → · Contrast checker → · Palette generator →

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