#12124F#12124F

#12124F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.108 H 274.2°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#12124F
RGBrgb(18, 18, 79)
HSLhsl(240, 63%, 19%)
HSVhsv(240, 77%, 31%)
CMYKcmyk(77.2%, 77.2%, 0%, 69%)
CIE-LABlab(10.00, 23.09, -37.21)
CIE-LCHlch(10.00, 43.79, 301.81°)
OKLaboklab(23.38% 0.0079 -0.1076)
OKLCHoklch(23.38% 0.108 274.2)
XYZxyz(1.8766, 1.1255, 7.5140)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12124F #4F4F12
analogous
#12314F #12124F #31124F
triadic
#12124F #4F1212 #124F12
tetradic
#12124F #4F1231 #4F4F12 #124F31
square
#12124F #4F1231 #4F4F12 #124F31
split-complementary
#12124F #4F3112 #314F12
monochromatic
#060619 #07071D #12124F #1D1D81 #2929B3

Accessibility & contrast

On white

17.14
#12124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#12124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12124F
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12124F#FFFFFF#000000##FFFFFF
##12124F1.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#00194E
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12124f;
/* rgb */ color: rgb(18, 18, 79);
/* oklch */ color: oklch(23.4% 0.108 274.2);
Tailwind
colors: {
  custom: {
    50: '#5b5081',
    500: '#12124f',
    950: '#000000',
  },
}
SCSS
$custom: #12124f;
$custom-light: #5b5081;
$custom-dark: #000000;
JSON
{
  "hex": "#12124f",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 240,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2338,
    "c": 0.10787,
    "h": 274.2
  },
  "luminance": 0.01126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12124F

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

Preview Lab → · Contrast checker → · Palette generator →

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