#12105B#12105B

#12105B is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.5% C 0.127 H 273.0°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#12105B
RGBrgb(18, 16, 91)
HSLhsl(242, 70%, 21%)
HSVhsv(242, 82%, 36%)
CMYKcmyk(80.2%, 82.4%, 0%, 64.3%)
CIE-LABlab(10.95, 28.92, -43.81)
CIE-LCHlch(10.95, 52.49, 303.43°)
OKLaboklab(24.48% 0.0065 -0.1268)
OKLCHoklch(24.48% 0.127 273)
XYZxyz(2.3224, 1.2543, 10.0152)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12105B #595B10
analogous
#10335B #12105B #37105B
triadic
#12105B #5B1210 #105B12
tetradic
#12105B #5B1033 #595B10 #105B37
square
#12105B #5B1033 #595B10 #105B37
split-complementary
#12105B #5B3710 #335B10
monochromatic
#05051A #080727 #12105B #1C198F #2722C3

Accessibility & contrast

On white

16.79
#12105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#12105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12105B
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12105B#FFFFFF#000000##FFFFFF
##12105B1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215D
Deuteranopia (green-blind)
#001A5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #12105b;
/* rgb */ color: rgb(18, 16, 91);
/* oklch */ color: oklch(24.5% 0.127 273.0);
Tailwind
colors: {
  custom: {
    50: '#5e4f8a',
    500: '#12105b',
    950: '#000000',
  },
}
SCSS
$custom: #12105b;
$custom-light: #5e4f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12105b",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 241.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24481,
    "c": 0.12695,
    "h": 273
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#12105B
secondary
#929433
accent
#ED3BE8
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12105B

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

Preview Lab → · Contrast checker → · Palette generator →

#12105B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva