#12124E#12124E

#12124E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.106 H 274.3°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#12124E
RGBrgb(18, 18, 78)
HSLhsl(240, 63%, 19%)
HSVhsv(240, 77%, 31%)
CMYKcmyk(76.9%, 76.9%, 0%, 69.4%)
CIE-LABlab(9.88, 22.69, -36.71)
CIE-LCHlch(9.88, 43.16, 301.72°)
OKLaboklab(23.27% 0.0081 -0.1061)
OKLCHoklch(23.27% 0.106 274.3)
XYZxyz(1.8404, 1.1111, 7.3237)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12124E #4E4E12
analogous
#12304E #12124E #30124E
triadic
#12124E #4E1212 #124E12
tetradic
#12124E #4E1230 #4E4E12 #124E30
square
#12124E #4E1230 #4E4E12 #124E30
split-complementary
#12124E #4E3012 #304E12
monochromatic
#060619 #07071C #12124E #1D1D80 #2929B1

Accessibility & contrast

On white

17.18
#12124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#12124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12124E
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12124E#FFFFFF#000000##FFFFFF
##12124E1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#00184D
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12124e;
/* rgb */ color: rgb(18, 18, 78);
/* oklch */ color: oklch(23.3% 0.106 274.3);
Tailwind
colors: {
  custom: {
    50: '#5b5080',
    500: '#12124e',
    950: '#000000',
  },
}
SCSS
$custom: #12124e;
$custom-light: #5b5080;
$custom-dark: #000000;
JSON
{
  "hex": "#12124e",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 240,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23266,
    "c": 0.10641,
    "h": 274.3
  },
  "luminance": 0.01111
}

Semantic roles & 50–950 ramp

primary
#12124E
secondary
#878735
accent
#E642E6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12124E

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

Preview Lab → · Contrast checker → · Palette generator →

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