#25228B#25228B

#25228B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.166 H 274.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#25228B
RGBrgb(37, 34, 139)
HSLhsl(242, 61%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(73.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.58, 37.02, -57.28)
CIE-LCHlch(21.58, 68.20, 302.87°)
OKLaboklab(33.98% 0.0124 -0.1657)
OKLCHoklch(33.98% 0.166 274.3)
XYZxyz(5.9936, 3.4009, 24.7617)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25228B #888B22
analogous
#22548B #25228B #5A228B
triadic
#25228B #8B2522 #228B25
tetradic
#25228B #8B2254 #888B22 #228B5A
square
#25228B #8B2254 #888B22 #228B5A
split-complementary
#25228B #8B5A22 #548B22
monochromatic
#0B0A29 #18165A #25228B #322EBC #5653D5

Accessibility & contrast

On white

12.50
#25228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#25228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25228B
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25228B#FFFFFF#000000##FFFFFF
##25228B1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #25228b;
/* rgb */ color: rgb(37, 34, 139);
/* oklch */ color: oklch(34.0% 0.166 274.3);
Tailwind
colors: {
  custom: {
    50: '#705fae',
    500: '#25228b',
    950: '#000000',
  },
}
SCSS
$custom: #25228b;
$custom-light: #705fae;
$custom-dark: #000000;
JSON
{
  "hex": "#25228b",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 241.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3398,
    "c": 0.16612,
    "h": 274.3
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#25228B
secondary
#B6B850
accent
#E444DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #25228B

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

Preview Lab → · Contrast checker → · Palette generator →

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