#12108D#12108D

#12108D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.9% C 0.189 H 268.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#12108D
RGBrgb(18, 16, 141)
HSLhsl(241, 80%, 31%)
HSVhsv(241, 89%, 55%)
CMYKcmyk(87.2%, 88.7%, 0%, 44.7%)
CIE-LABlab(17.56, 45.65, -65.23)
CIE-LCHlch(17.56, 79.62, 304.99°)
OKLaboklab(30.95% -0.0051 -0.1888)
OKLCHoklch(30.95% 0.189 268.4)
XYZxyz(5.2408, 2.4216, 25.3853)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12108D #8B8D10
analogous
#104C8D #12108D #50108D
triadic
#12108D #8D1210 #108D12
tetradic
#12108D #8D104C #8B8D10 #108D50
square
#12108D #8D104C #8B8D10 #108D50
split-complementary
#12108D #8D5010 #4C8D10
monochromatic
#04041F #0B0A56 #12108D #1916C4 #3330E7

Accessibility & contrast

On white

14.15
#12108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#12108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12108D
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12108D#FFFFFF#000000##FFFFFF
##12108D1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003190
Deuteranopia (green-blind)
#00248B
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12108d;
/* rgb */ color: rgb(18, 16, 141);
/* oklch */ color: oklch(30.9% 0.189 268.4);
Tailwind
colors: {
  custom: {
    50: '#6d54b0',
    500: '#12108d',
    950: '#000000',
  },
}
SCSS
$custom: #12108d;
$custom-light: #6d54b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12108d",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 240.96,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3095,
    "c": 0.18883,
    "h": 268.4
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#12108D
secondary
#C0C237
accent
#F632F3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12108D

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

Preview Lab → · Contrast checker → · Palette generator →

#12108D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva