#12124A#12124A

#12124A is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.101 H 275.0°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#12124A
RGBrgb(18, 18, 74)
HSLhsl(240, 61%, 18%)
HSVhsv(240, 76%, 29%)
CMYKcmyk(75.7%, 75.7%, 0%, 71%)
CIE-LABlab(9.45, 21.12, -34.66)
CIE-LCHlch(9.45, 40.58, 301.35°)
OKLaboklab(22.82% 0.0087 -0.1001)
OKLCHoklch(22.82% 0.101 275)
XYZxyz(1.7014, 1.0555, 6.5913)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12124A #4A4A12
analogous
#122E4A #12124A #2E124A
triadic
#12124A #4A1212 #124A12
tetradic
#12124A #4A122E #4A4A12 #124A2E
square
#12124A #4A122E #4A4A12 #124A2E
split-complementary
#12124A #4A2E12 #2E4A12
monochromatic
#060619 #060619 #12124A #1E1E7B #2A2AAC

Accessibility & contrast

On white

17.34
#12124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#12124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12124A
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12124A#FFFFFF#000000##FFFFFF
##12124A1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001849
Tritanopia (blue-blind)
#00212C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #12124a;
/* rgb */ color: rgb(18, 18, 74);
/* oklch */ color: oklch(22.8% 0.101 275.0);
Tailwind
colors: {
  custom: {
    50: '#59507d',
    500: '#12124a',
    950: '#000000',
  },
}
SCSS
$custom: #12124a;
$custom-light: #59507d;
$custom-dark: #000000;
JSON
{
  "hex": "#12124a",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 240,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22816,
    "c": 0.1005,
    "h": 275
  },
  "luminance": 0.01056
}

Semantic roles & 50–950 ramp

primary
#12124A
secondary
#838335
accent
#E444E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12124A

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

Preview Lab → · Contrast checker → · Palette generator →

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