#221257#221257

#221257 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.116 H 285.5°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#221257
RGBrgb(34, 18, 87)
HSLhsl(254, 66%, 21%)
HSVhsv(254, 79%, 34%)
CMYKcmyk(60.9%, 79.3%, 0%, 65.9%)
CIE-LABlab(12.36, 28.35, -38.75)
CIE-LCHlch(12.36, 48.01, 306.19°)
OKLaboklab(25.7% 0.031 -0.1115)
OKLCHoklch(25.7% 0.116 285.5)
XYZxyz(2.5958, 1.4607, 9.1601)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221257 #475712
analogous
#122457 #221257 #441257
triadic
#221257 #572212 #125722
tetradic
#221257 #571224 #475712 #125744
square
#221257 #571224 #475712 #125744
split-complementary
#221257 #574412 #245712
monochromatic
#0A0519 #0E0824 #221257 #361C8A #4A27BC

Accessibility & contrast

On white

16.25
#221257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#221257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221257
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221257#FFFFFF#000000##FFFFFF
##2212571.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001E56
Tritanopia (blue-blind)
#092533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221257;
/* rgb */ color: rgb(34, 18, 87);
/* oklch */ color: oklch(25.7% 0.116 285.5);
Tailwind
colors: {
  custom: {
    50: '#645287',
    500: '#221257',
    950: '#000000',
  },
}
SCSS
$custom: #221257;
$custom-light: #645287;
$custom-dark: #000000;
JSON
{
  "hex": "#221257",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 253.913,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25697,
    "c": 0.11576,
    "h": 285.5
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#221257
secondary
#7B9035
accent
#E93FC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221257

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

Preview Lab → · Contrast checker → · Palette generator →

#221257 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva