#12123B#12123B

#12123B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.2% C 0.077 H 277.6°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#12123B
RGBrgb(18, 18, 59)
HSLhsl(240, 53%, 15%)
HSVhsv(240, 69%, 23%)
CMYKcmyk(69.5%, 69.5%, 0%, 76.9%)
CIE-LABlab(7.92, 15.07, -26.55)
CIE-LCHlch(7.92, 30.52, 299.58°)
OKLaboklab(21.23% 0.0102 -0.0763)
OKLCHoklch(21.23% 0.077 277.6)
XYZxyz(1.2549, 0.8769, 4.2399)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12123B #3B3B12
analogous
#12263B #12123B #26123B
triadic
#12123B #3B1212 #123B12
tetradic
#12123B #3B1226 #3B3B12 #123B26
square
#12123B #3B1226 #3B3B12 #123B26
split-complementary
#12123B #3B2612 #263B12
monochromatic
#070717 #070717 #12123B #20206A #2F2F99

Accessibility & contrast

On white

17.87
#12123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12123B
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12123B#FFFFFF#000000##FFFFFF
##12123B1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#001C24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12123b;
/* rgb */ color: rgb(18, 18, 59);
/* oklch */ color: oklch(21.2% 0.077 277.6);
Tailwind
colors: {
  custom: {
    50: '#554f71',
    500: '#12123b',
    950: '#000000',
  },
}
SCSS
$custom: #12123b;
$custom-light: #554f71;
$custom-dark: #000000;
JSON
{
  "hex": "#12123b",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 240,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21233,
    "c": 0.07701,
    "h": 277.6
  },
  "luminance": 0.00877
}

Semantic roles & 50–950 ramp

primary
#12123B
secondary
#747435
accent
#DD4BDD
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #12123B

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

Preview Lab → · Contrast checker → · Palette generator →

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