#25228F#25228F

#25228F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.171 H 273.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#25228F
RGBrgb(37, 34, 143)
HSLhsl(242, 62%, 35%)
HSVhsv(242, 76%, 56%)
CMYKcmyk(74.1%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.02, 38.39, -59.06)
CIE-LCHlch(22.02, 70.44, 303.03°)
OKLaboklab(34.42% 0.0116 -0.1708)
OKLCHoklch(34.42% 0.171 273.9)
XYZxyz(6.2913, 3.5199, 26.3291)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25228F #8C8F22
analogous
#22568F #25228F #5B228F
triadic
#25228F #8F2522 #228F25
tetradic
#25228F #8F2256 #8C8F22 #228F5B
square
#25228F #8F2256 #8C8F22 #228F5B
split-complementary
#25228F #8F5B22 #568F22
monochromatic
#0B0A2C #18165E #25228F #322EC0 #5855D7

Accessibility & contrast

On white

12.32
#25228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#25228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25228F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25228F#FFFFFF#000000##FFFFFF
##25228F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #25228f;
/* rgb */ color: rgb(37, 34, 143);
/* oklch */ color: oklch(34.4% 0.171 273.9);
Tailwind
colors: {
  custom: {
    50: '#715fb1',
    500: '#25228f',
    950: '#000000',
  },
}
SCSS
$custom: #25228f;
$custom-light: #715fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#25228f",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 241.651,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34417,
    "c": 0.17122,
    "h": 273.9
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#25228F
secondary
#B8BA52
accent
#E543E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #25228F

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

Preview Lab → · Contrast checker → · Palette generator →

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