#25218F#25218F

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

Color values

HEX#25218F
RGBrgb(37, 33, 143)
HSLhsl(242, 63%, 35%)
HSVhsv(242, 77%, 56%)
CMYKcmyk(74.1%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.81, 38.97, -59.39)
CIE-LCHlch(21.81, 71.04, 303.27°)
OKLaboklab(34.27% 0.0121 -0.1718)
OKLCHoklch(34.27% 0.172 274)
XYZxyz(6.2631, 3.4636, 26.3197)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25218F #8B8F21
analogous
#21548F #25218F #5C218F
triadic
#25218F #8F2521 #218F25
tetradic
#25218F #8F2154 #8B8F21 #218F5C
square
#25218F #8F2154 #8B8F21 #218F5C
split-complementary
#25218F #8F5C21 #548F21
monochromatic
#0B0A2C #18165D #25218F #322CC1 #5853D7

Accessibility & contrast

On white

12.41
#25218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#25218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25218F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25218F#FFFFFF#000000##FFFFFF
##25218F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25218f;
/* rgb */ color: rgb(37, 33, 143);
/* oklch */ color: oklch(34.3% 0.172 274.0);
Tailwind
colors: {
  custom: {
    50: '#715eb1',
    500: '#25218f',
    950: '#000000',
  },
}
SCSS
$custom: #25218f;
$custom-light: #715eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#25218f",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 242.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34273,
    "c": 0.17222,
    "h": 274
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#25218F
secondary
#B7BB51
accent
#E642E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #25218F

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

Preview Lab → · Contrast checker → · Palette generator →

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