#25218B#25218B

#25218B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.167 H 274.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#25218B
RGBrgb(37, 33, 139)
HSLhsl(242, 62%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(73.4%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.37, 37.61, -57.62)
CIE-LCHlch(21.37, 68.81, 303.13°)
OKLaboklab(33.83% 0.0129 -0.1667)
OKLCHoklch(33.83% 0.167 274.4)
XYZxyz(5.9655, 3.3445, 24.7523)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25218B #878B21
analogous
#21528B #25218B #5A218B
triadic
#25218B #8B2521 #218B25
tetradic
#25218B #8B2152 #878B21 #218B5A
square
#25218B #8B2152 #878B21 #218B5A
split-complementary
#25218B #8B5A21 #528B21
monochromatic
#0B0A28 #18155A #25218B #322DBC #5651D6

Accessibility & contrast

On white

12.58
#25218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25218B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25218B#FFFFFF#000000##FFFFFF
##25218B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #25218b;
/* rgb */ color: rgb(37, 33, 139);
/* oklch */ color: oklch(33.8% 0.167 274.4);
Tailwind
colors: {
  custom: {
    50: '#705eae',
    500: '#25218b',
    950: '#000000',
  },
}
SCSS
$custom: #25218b;
$custom-light: #705eae;
$custom-dark: #000000;
JSON
{
  "hex": "#25218b",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 242.264,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33832,
    "c": 0.16716,
    "h": 274.4
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#25218B
secondary
#B5B94F
accent
#E543DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #25218B

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

Preview Lab → · Contrast checker → · Palette generator →

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