#12102A#12102A

#12102A is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.2% C 0.051 H 284.0°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#12102A
RGBrgb(18, 16, 42)
HSLhsl(245, 45%, 11%)
HSVhsv(245, 62%, 16%)
CMYKcmyk(57.1%, 61.9%, 0%, 83.5%)
CIE-LABlab(6.02, 8.98, -17.11)
CIE-LCHlch(6.02, 19.32, 297.68°)
OKLaboklab(19.21% 0.0123 -0.0496)
OKLCHoklch(19.21% 0.051 284)
XYZxyz(0.8525, 0.6663, 2.2737)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12102A #282A10
analogous
#101B2A #12102A #1F102A
triadic
#12102A #2A1210 #102A12
tetradic
#12102A #2A101B #282A10 #102A1F
square
#12102A #2A101B #282A10 #102A1F
split-complementary
#12102A #2A1F10 #1B2A10
monochromatic
#090816 #090816 #12102A #252156 #383283

Accessibility & contrast

On white

18.53
#12102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12102A
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12102A#FFFFFF#000000##FFFFFF
##12102A1.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05142B
Deuteranopia (green-blind)
#051229
Tritanopia (blue-blind)
#0A161B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #12102a;
/* rgb */ color: rgb(18, 16, 42);
/* oklch */ color: oklch(19.2% 0.051 284.0);
Tailwind
colors: {
  custom: {
    50: '#514e63',
    500: '#12102a',
    950: '#000000',
  },
}
SCSS
$custom: #12102a;
$custom-light: #514e63;
$custom-dark: #000000;
JSON
{
  "hex": "#12102a",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 244.615,
    "s": 44.828,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19208,
    "c": 0.05107,
    "h": 284
  },
  "luminance": 0.00666
}

Semantic roles & 50–950 ramp

primary
#12102A
secondary
#5F6233
accent
#D553CB
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #12102A

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

Preview Lab → · Contrast checker → · Palette generator →

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