#25228E#25228E

#25228E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.170 H 274.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#25228E
RGBrgb(37, 34, 142)
HSLhsl(242, 61%, 35%)
HSVhsv(242, 76%, 56%)
CMYKcmyk(73.9%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.91, 38.05, -58.61)
CIE-LCHlch(21.91, 69.88, 302.99°)
OKLaboklab(34.31% 0.0118 -0.1695)
OKLCHoklch(34.31% 0.17 274)
XYZxyz(6.2158, 3.4897, 25.9319)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25228E #8B8E22
analogous
#22558E #25228E #5B228E
triadic
#25228E #8E2522 #228E25
tetradic
#25228E #8E2255 #8B8E22 #228E5B
square
#25228E #8E2255 #8B8E22 #228E5B
split-complementary
#25228E #8E5B22 #558E22
monochromatic
#0B0A2B #18165D #25228E #322EBF #5854D6

Accessibility & contrast

On white

12.37
#25228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25228E
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25228E#FFFFFF#000000##FFFFFF
##25228E1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25228e;
/* rgb */ color: rgb(37, 34, 142);
/* oklch */ color: oklch(34.3% 0.170 274.0);
Tailwind
colors: {
  custom: {
    50: '#715fb0',
    500: '#25228e',
    950: '#000000',
  },
}
SCSS
$custom: #25228e;
$custom-light: #715fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#25228e",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 241.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34307,
    "c": 0.16996,
    "h": 274
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#25228E
secondary
#B7BA52
accent
#E443E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #25228E

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

Preview Lab → · Contrast checker → · Palette generator →

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