#12124B#12124B

#12124B is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.102 H 274.8°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#12124B
RGBrgb(18, 18, 75)
HSLhsl(240, 61%, 18%)
HSVhsv(240, 76%, 29%)
CMYKcmyk(76%, 76%, 0%, 70.6%)
CIE-LABlab(9.55, 21.51, -35.18)
CIE-LCHlch(9.55, 41.23, 301.45°)
OKLaboklab(22.93% 0.0085 -0.1016)
OKLCHoklch(22.93% 0.102 274.8)
XYZxyz(1.7353, 1.0690, 6.7701)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12124B #4B4B12
analogous
#122E4B #12124B #2E124B
triadic
#12124B #4B1212 #124B12
tetradic
#12124B #4B122E #4B4B12 #124B2E
square
#12124B #4B122E #4B4B12 #124B2E
split-complementary
#12124B #4B2E12 #2E4B12
monochromatic
#060619 #06061A #12124B #1E1E7C #2A2AAE

Accessibility & contrast

On white

17.30
#12124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12124B
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12124B#FFFFFF#000000##FFFFFF
##12124B1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#00212C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12124b;
/* rgb */ color: rgb(18, 18, 75);
/* oklch */ color: oklch(22.9% 0.102 274.8);
Tailwind
colors: {
  custom: {
    50: '#5a507e',
    500: '#12124b',
    950: '#000000',
  },
}
SCSS
$custom: #12124b;
$custom-light: #5a507e;
$custom-dark: #000000;
JSON
{
  "hex": "#12124b",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 240,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22928,
    "c": 0.10199,
    "h": 274.8
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#12124B
secondary
#848435
accent
#E443E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12124B

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

Preview Lab → · Contrast checker → · Palette generator →

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