#12102B#12102B

#12102B is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.3% C 0.053 H 283.6°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#12102B
RGBrgb(18, 16, 43)
HSLhsl(244, 46%, 12%)
HSVhsv(244, 63%, 17%)
CMYKcmyk(58.1%, 62.8%, 0%, 83.1%)
CIE-LABlab(6.08, 9.43, -17.76)
CIE-LCHlch(6.08, 20.11, 297.96°)
OKLaboklab(19.29% 0.0124 -0.0514)
OKLCHoklch(19.29% 0.053 283.6)
XYZxyz(0.8707, 0.6736, 2.3692)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12102B #292B10
analogous
#101C2B #12102B #20102B
triadic
#12102B #2B1210 #102B12
tetradic
#12102B #2B101C #292B10 #102B20
square
#12102B #2B101C #292B10 #102B20
split-complementary
#12102B #2B2010 #1C2B10
monochromatic
#090816 #090816 #12102B #252158 #373184

Accessibility & contrast

On white

18.51
#12102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#12102B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12102B
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12102B#FFFFFF#000000##FFFFFF
##12102B1.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05142C
Deuteranopia (green-blind)
#04132A
Tritanopia (blue-blind)
#09161B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #12102b;
/* rgb */ color: rgb(18, 16, 43);
/* oklch */ color: oklch(19.3% 0.053 283.6);
Tailwind
colors: {
  custom: {
    50: '#514e64',
    500: '#12102b',
    950: '#000000',
  },
}
SCSS
$custom: #12102b;
$custom-light: #514e64;
$custom-dark: #000000;
JSON
{
  "hex": "#12102b",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 244.444,
    "s": 45.763,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19293,
    "c": 0.05289,
    "h": 283.6
  },
  "luminance": 0.00674
}

Semantic roles & 50–950 ramp

primary
#12102B
secondary
#606433
accent
#D552CC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #12102B

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

Preview Lab → · Contrast checker → · Palette generator →

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