#100228#100228

#100228 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.5% C 0.076 H 294.8°. Best body text is #FFFFFF at 19.79:1 contrast (WCAG AA passes).

Color values

HEX#100228
RGBrgb(16, 2, 40)
HSLhsl(262, 90%, 8%)
HSVhsv(262, 95%, 16%)
CMYKcmyk(60%, 95%, 0%, 84.3%)
CIE-LABlab(2.77, 13.38, -20.70)
CIE-LCHlch(2.77, 24.65, 302.88°)
OKLaboklab(15.49% 0.0318 -0.0689)
OKLCHoklch(15.49% 0.076 294.8)
XYZxyz(0.6183, 0.3068, 2.0337)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#100228 #1A2802
analogous
#020728 #100228 #230228
triadic
#100228 #281002 #022810
tetradic
#100228 #280207 #1A2802 #022823
square
#100228 #280207 #1A2802 #022823
split-complementary
#100228 #282302 #072802
monochromatic
#0C011D #0C011D #100228 #270562 #3F089D

Accessibility & contrast

On white

19.79
#100228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#100228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #100228
19.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##100228#FFFFFF#000000##FFFFFF
##1002281.0019.791.0619.79
#FFFFFF19.791.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A29
Deuteranopia (green-blind)
#000927
Tritanopia (blue-blind)
#090B14
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #100228;
/* rgb */ color: rgb(16, 2, 40);
/* oklch */ color: oklch(15.5% 0.076 294.8);
Tailwind
colors: {
  custom: {
    50: '#4f4762',
    500: '#100228',
    950: '#000000',
  },
}
SCSS
$custom: #100228;
$custom-light: #4f4762;
$custom-dark: #000000;
JSON
{
  "hex": "#100228",
  "rgb": {
    "r": 16,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 262.105,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.15487,
    "c": 0.07586,
    "h": 294.8
  },
  "luminance": 0.00307
}

Semantic roles & 50–950 ramp

primary
#100228
secondary
#4E6D19
accent
#FF29B0
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #100228

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

Preview Lab → · Contrast checker → · Palette generator →

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