#25218C#25218C

#25218C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.168 H 274.3°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#25218C
RGBrgb(37, 33, 140)
HSLhsl(242, 62%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(73.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.48, 37.95, -58.07)
CIE-LCHlch(21.48, 69.37, 303.17°)
OKLaboklab(33.94% 0.0127 -0.1679)
OKLCHoklch(33.94% 0.168 274.3)
XYZxyz(6.0389, 3.3739, 25.1388)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25218C #888C21
analogous
#21538C #25218C #5B218C
triadic
#25218C #8C2521 #218C25
tetradic
#25218C #8C2153 #888C21 #218C5B
square
#25218C #8C2153 #888C21 #218C5B
split-complementary
#25218C #8C5B21 #538C21
monochromatic
#0B0A29 #18155A #25218C #322DBE #5651D6

Accessibility & contrast

On white

12.54
#25218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#25218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25218C
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25218C#FFFFFF#000000##FFFFFF
##25218C1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #25218c;
/* rgb */ color: rgb(37, 33, 140);
/* oklch */ color: oklch(33.9% 0.168 274.3);
Tailwind
colors: {
  custom: {
    50: '#715eaf',
    500: '#25218c',
    950: '#000000',
  },
}
SCSS
$custom: #25218c;
$custom-light: #715eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#25218c",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 242.243,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33942,
    "c": 0.16843,
    "h": 274.3
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#25218C
secondary
#B6B94F
accent
#E543DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #25218C

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

Preview Lab → · Contrast checker → · Palette generator →

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