#25217F#25217F

#25217F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.152 H 275.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#25217F
RGBrgb(37, 33, 127)
HSLhsl(243, 59%, 31%)
HSVhsv(243, 74%, 50%)
CMYKcmyk(70.9%, 74%, 0%, 50.2%)
CIE-LABlab(20.10, 33.45, -52.18)
CIE-LCHlch(20.10, 61.98, 302.66°)
OKLaboklab(32.54% 0.0152 -0.1508)
OKLCHoklch(32.54% 0.152 275.8)
XYZxyz(5.1363, 3.0129, 20.3854)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25217F #7B7F21
analogous
#214C7F #25217F #54217F
triadic
#25217F #7F2521 #217F25
tetradic
#25217F #7F214C #7B7F21 #217F54
square
#25217F #7F214C #7B7F21 #217F54
split-complementary
#25217F #7F5421 #4C7F21
monochromatic
#09081E #17144E #25217F #332EB0 #504AD0

Accessibility & contrast

On white

13.10
#25217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#25217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25217F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25217F#FFFFFF#000000##FFFFFF
##25217F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #25217f;
/* rgb */ color: rgb(37, 33, 127);
/* oklch */ color: oklch(32.5% 0.152 275.8);
Tailwind
colors: {
  custom: {
    50: '#6e5da5',
    500: '#25217f',
    950: '#000000',
  },
}
SCSS
$custom: #25217f;
$custom-light: #6e5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#25217f",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 242.553,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3254,
    "c": 0.15156,
    "h": 275.8
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#25217F
secondary
#ADB24A
accent
#E246DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #25217F

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

Preview Lab → · Contrast checker → · Palette generator →

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