#25218D#25218D

#25218D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.170 H 274.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#25218D
RGBrgb(37, 33, 141)
HSLhsl(242, 62%, 34%)
HSVhsv(242, 77%, 55%)
CMYKcmyk(73.8%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.59, 38.29, -58.51)
CIE-LCHlch(21.59, 69.93, 303.20°)
OKLaboklab(34.05% 0.0125 -0.1692)
OKLCHoklch(34.05% 0.17 274.2)
XYZxyz(6.1129, 3.4035, 25.5289)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25218D #898D21
analogous
#21538D #25218D #5B218D
triadic
#25218D #8D2521 #218D25
tetradic
#25218D #8D2153 #898D21 #218D5B
square
#25218D #8D2153 #898D21 #218D5B
split-complementary
#25218D #8D5B21 #538D21
monochromatic
#0B0A2A #18155B #25218D #322DBF #5752D6

Accessibility & contrast

On white

12.49
#25218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#25218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25218D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25218D#FFFFFF#000000##FFFFFF
##25218D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #25218d;
/* rgb */ color: rgb(37, 33, 141);
/* oklch */ color: oklch(34.1% 0.170 274.2);
Tailwind
colors: {
  custom: {
    50: '#715eaf',
    500: '#25218d',
    950: '#000000',
  },
}
SCSS
$custom: #25218d;
$custom-light: #715eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#25218d",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 242.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34052,
    "c": 0.1697,
    "h": 274.2
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#25218D
secondary
#B6BA50
accent
#E543DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #25218D

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

Preview Lab → · Contrast checker → · Palette generator →

#25218D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva