#221258#221258

#221258 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.117 H 285.2°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#221258
RGBrgb(34, 18, 88)
HSLhsl(254, 66%, 21%)
HSVhsv(254, 80%, 35%)
CMYKcmyk(61.4%, 79.5%, 0%, 65.5%)
CIE-LABlab(12.46, 28.68, -39.25)
CIE-LCHlch(12.46, 48.61, 306.16°)
OKLaboklab(25.8% 0.0308 -0.113)
OKLCHoklch(25.8% 0.117 285.2)
XYZxyz(2.6369, 1.4771, 9.3768)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221258 #485812
analogous
#122558 #221258 #451258
triadic
#221258 #582212 #125822
tetradic
#221258 #581225 #485812 #125845
square
#221258 #581225 #485812 #125845
split-complementary
#221258 #584512 #255812
monochromatic
#0A0519 #0E0825 #221258 #361C8B #4927BE

Accessibility & contrast

On white

16.21
#221258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#221258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221258
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221258#FFFFFF#000000##FFFFFF
##2212581.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#072534
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221258;
/* rgb */ color: rgb(34, 18, 88);
/* oklch */ color: oklch(25.8% 0.117 285.2);
Tailwind
colors: {
  custom: {
    50: '#655288',
    500: '#221258',
    950: '#000000',
  },
}
SCSS
$custom: #221258;
$custom-light: #655288;
$custom-dark: #000000;
JSON
{
  "hex": "#221258",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 253.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25804,
    "c": 0.11711,
    "h": 285.2
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#221258
secondary
#7C9135
accent
#E93FC2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221258

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

Preview Lab → · Contrast checker → · Palette generator →

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