#12124C#12124C

#12124C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.103 H 274.6°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#12124C
RGBrgb(18, 18, 76)
HSLhsl(240, 62%, 18%)
HSVhsv(240, 76%, 30%)
CMYKcmyk(76.3%, 76.3%, 0%, 70.2%)
CIE-LABlab(9.66, 21.91, -35.69)
CIE-LCHlch(9.66, 41.88, 301.54°)
OKLaboklab(23.04% 0.0084 -0.1031)
OKLCHoklch(23.04% 0.103 274.6)
XYZxyz(1.7698, 1.0828, 6.9518)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12124C #4C4C12
analogous
#122F4C #12124C #2F124C
triadic
#12124C #4C1212 #124C12
tetradic
#12124C #4C122F #4C4C12 #124C2F
square
#12124C #4C122F #4C4C12 #124C2F
split-complementary
#12124C #4C2F12 #2F4C12
monochromatic
#060619 #06061B #12124C #1E1E7D #2929AF

Accessibility & contrast

On white

17.26
#12124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12124C
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12124C#FFFFFF#000000##FFFFFF
##12124C1.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#00184B
Tritanopia (blue-blind)
#00222D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12124c;
/* rgb */ color: rgb(18, 18, 76);
/* oklch */ color: oklch(23.0% 0.103 274.6);
Tailwind
colors: {
  custom: {
    50: '#5a507f',
    500: '#12124c',
    950: '#000000',
  },
}
SCSS
$custom: #12124c;
$custom-light: #5a507f;
$custom-dark: #000000;
JSON
{
  "hex": "#12124c",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 240,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2304,
    "c": 0.10347,
    "h": 274.6
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12124C

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

Preview Lab → · Contrast checker → · Palette generator →

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