#25217C#25217C

#25217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.148 H 276.1°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#25217C
RGBrgb(37, 33, 124)
HSLhsl(243, 58%, 31%)
HSVhsv(243, 73%, 49%)
CMYKcmyk(70.2%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.78, 32.40, -50.79)
CIE-LCHlch(19.78, 60.24, 302.53°)
OKLaboklab(32.22% 0.0158 -0.1467)
OKLCHoklch(32.22% 0.148 276.1)
XYZxyz(4.9437, 2.9358, 19.3710)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25217C #787C21
analogous
#214A7C #25217C #52217C
triadic
#25217C #7C2521 #217C25
tetradic
#25217C #7C214A #787C21 #217C52
square
#25217C #7C214A #787C21 #217C52
split-complementary
#25217C #7C5221 #4A7C21
monochromatic
#08071B #17144C #25217C #332EAC #4F49CF

Accessibility & contrast

On white

13.23
#25217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#25217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25217C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25217C#FFFFFF#000000##FFFFFF
##25217C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #25217c;
/* rgb */ color: rgb(37, 33, 124);
/* oklch */ color: oklch(32.2% 0.148 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d5da3',
    500: '#25217c',
    950: '#000000',
  },
}
SCSS
$custom: #25217c;
$custom-light: #6d5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#25217c",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 242.637,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.14756,
    "h": 276.1
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#25217C
secondary
#AAAF4A
accent
#E147DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #25217C

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

Preview Lab → · Contrast checker → · Palette generator →

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