#25228D#25228D

#25228D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.169 H 274.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#25228D
RGBrgb(37, 34, 141)
HSLhsl(242, 61%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(73.8%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.80, 37.71, -58.17)
CIE-LCHlch(21.80, 69.32, 302.95°)
OKLaboklab(34.2% 0.012 -0.1683)
OKLCHoklch(34.2% 0.169 274.1)
XYZxyz(6.1411, 3.4598, 25.5383)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25228D #8A8D22
analogous
#22558D #25228D #5B228D
triadic
#25228D #8D2522 #228D25
tetradic
#25228D #8D2255 #8A8D22 #228D5B
square
#25228D #8D2255 #8A8D22 #228D5B
split-complementary
#25228D #8D5B22 #558D22
monochromatic
#0B0A2A #18165C #25228D #322EBE #5754D6

Accessibility & contrast

On white

12.41
#25228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#25228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25228D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25228D#FFFFFF#000000##FFFFFF
##25228D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25228d;
/* rgb */ color: rgb(37, 34, 141);
/* oklch */ color: oklch(34.2% 0.169 274.1);
Tailwind
colors: {
  custom: {
    50: '#715faf',
    500: '#25228d',
    950: '#000000',
  },
}
SCSS
$custom: #25228d;
$custom-light: #715faf;
$custom-dark: #000000;
JSON
{
  "hex": "#25228d",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 241.682,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.16868,
    "h": 274.1
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#25228D
secondary
#B7B951
accent
#E444E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #25228D

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

Preview Lab → · Contrast checker → · Palette generator →

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