#12123F#12123F

#12123F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.083 H 276.8°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#12123F
RGBrgb(18, 18, 63)
HSLhsl(240, 56%, 16%)
HSVhsv(240, 71%, 25%)
CMYKcmyk(71.4%, 71.4%, 0%, 75.3%)
CIE-LABlab(8.31, 16.70, -28.78)
CIE-LCHlch(8.31, 33.27, 300.12°)
OKLaboklab(21.64% 0.01 -0.0829)
OKLCHoklch(21.64% 0.083 276.8)
XYZxyz(1.3627, 0.9200, 4.8074)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12123F #3F3F12
analogous
#12283F #12123F #28123F
triadic
#12123F #3F1212 #123F12
tetradic
#12123F #3F1228 #3F3F12 #123F28
square
#12123F #3F1228 #3F3F12 #123F28
split-complementary
#12123F #3F2812 #283F12
monochromatic
#070718 #070718 #12123F #20206F #2D2D9E

Accessibility & contrast

On white

17.74
#12123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#12123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12123F
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12123F#FFFFFF#000000##FFFFFF
##12123F1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #12123f;
/* rgb */ color: rgb(18, 18, 63);
/* oklch */ color: oklch(21.6% 0.083 276.8);
Tailwind
colors: {
  custom: {
    50: '#564f74',
    500: '#12123f',
    950: '#000000',
  },
}
SCSS
$custom: #12123f;
$custom-light: #564f74;
$custom-dark: #000000;
JSON
{
  "hex": "#12123f",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 240,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21637,
    "c": 0.08349,
    "h": 276.8
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#12123F
secondary
#787835
accent
#DF49DF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #12123F

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

Preview Lab → · Contrast checker → · Palette generator →

#12123F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva