#25218A#25218A

#25218A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.166 H 274.5°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#25218A
RGBrgb(37, 33, 138)
HSLhsl(242, 61%, 34%)
HSVhsv(242, 76%, 54%)
CMYKcmyk(73.2%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.27, 37.27, -57.18)
CIE-LCHlch(21.27, 68.25, 303.09°)
OKLaboklab(33.72% 0.0131 -0.1654)
OKLCHoklch(33.72% 0.166 274.5)
XYZxyz(5.8927, 3.3154, 24.3692)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25218A #868A21
analogous
#21518A #25218A #59218A
triadic
#25218A #8A2521 #218A25
tetradic
#25218A #8A2151 #868A21 #218A59
square
#25218A #8A2151 #868A21 #218A59
split-complementary
#25218A #8A5921 #518A21
monochromatic
#0B0927 #181559 #25218A #322DBB #5550D5

Accessibility & contrast

On white

12.63
#25218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#25218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25218A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25218A#FFFFFF#000000##FFFFFF
##25218A1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #25218a;
/* rgb */ color: rgb(37, 33, 138);
/* oklch */ color: oklch(33.7% 0.166 274.5);
Tailwind
colors: {
  custom: {
    50: '#705ead',
    500: '#25218a',
    950: '#000000',
  },
}
SCSS
$custom: #25218a;
$custom-light: #705ead;
$custom-dark: #000000;
JSON
{
  "hex": "#25218a",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 242.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33723,
    "c": 0.16588,
    "h": 274.5
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#25218A
secondary
#B4B94E
accent
#E543DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #25218A

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

Preview Lab → · Contrast checker → · Palette generator →

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