#25228C#25228C

#25228C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.167 H 274.2°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#25228C
RGBrgb(37, 34, 140)
HSLhsl(242, 61%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(73.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.69, 37.37, -57.73)
CIE-LCHlch(21.69, 68.76, 302.91°)
OKLaboklab(34.09% 0.0122 -0.167)
OKLCHoklch(34.09% 0.167 274.2)
XYZxyz(6.0670, 3.4302, 25.1482)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25228C #898C22
analogous
#22548C #25228C #5A228C
triadic
#25228C #8C2522 #228C25
tetradic
#25228C #8C2254 #898C22 #228C5A
square
#25228C #8C2254 #898C22 #228C5A
split-complementary
#25228C #8C5A22 #548C22
monochromatic
#0B0A2A #18165B #25228C #322EBD #5753D5

Accessibility & contrast

On white

12.45
#25228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25228C
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25228C#FFFFFF#000000##FFFFFF
##25228C1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #25228c;
/* rgb */ color: rgb(37, 34, 140);
/* oklch */ color: oklch(34.1% 0.167 274.2);
Tailwind
colors: {
  custom: {
    50: '#715faf',
    500: '#25228c',
    950: '#000000',
  },
}
SCSS
$custom: #25228c;
$custom-light: #715faf;
$custom-dark: #000000;
JSON
{
  "hex": "#25228c",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 241.698,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34089,
    "c": 0.1674,
    "h": 274.2
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#25228C
secondary
#B6B951
accent
#E444E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #25228C

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

Preview Lab → · Contrast checker → · Palette generator →

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