#221256#221256

#221256 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.114 H 285.9°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#221256
RGBrgb(34, 18, 86)
HSLhsl(254, 65%, 20%)
HSVhsv(254, 79%, 34%)
CMYKcmyk(60.5%, 79.1%, 0%, 66.3%)
CIE-LABlab(12.25, 28.02, -38.24)
CIE-LCHlch(12.25, 47.41, 306.23°)
OKLaboklab(25.59% 0.0313 -0.11)
OKLCHoklch(25.59% 0.114 285.9)
XYZxyz(2.5552, 1.4444, 8.9465)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221256 #465612
analogous
#122456 #221256 #441256
triadic
#221256 #562212 #125622
tetradic
#221256 #561224 #465612 #125644
square
#221256 #561224 #465612 #125644
split-complementary
#221256 #564412 #245612
monochromatic
#0A0519 #0E0723 #221256 #361D89 #4A27BB

Accessibility & contrast

On white

16.29
#221256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221256
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221256#FFFFFF#000000##FFFFFF
##2212561.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#0A2533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221256;
/* rgb */ color: rgb(34, 18, 86);
/* oklch */ color: oklch(25.6% 0.114 285.9);
Tailwind
colors: {
  custom: {
    50: '#645286',
    500: '#221256',
    950: '#000000',
  },
}
SCSS
$custom: #221256;
$custom-light: #645286;
$custom-dark: #000000;
JSON
{
  "hex": "#221256",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 254.118,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25591,
    "c": 0.11441,
    "h": 285.9
  },
  "luminance": 0.01445
}

Semantic roles & 50–950 ramp

primary
#221256
secondary
#7A8F35
accent
#E83FC1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221256

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

Preview Lab → · Contrast checker → · Palette generator →

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