#120A40#120A40

#120A40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.3% C 0.096 H 280.3°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#120A40
RGBrgb(18, 10, 64)
HSLhsl(249, 73%, 15%)
HSVhsv(249, 84%, 25%)
CMYKcmyk(71.9%, 84.4%, 0%, 74.9%)
CIE-LABlab(6.46, 22.22, -32.50)
CIE-LCHlch(6.46, 39.37, 304.36°)
OKLaboklab(20.27% 0.0171 -0.0943)
OKLCHoklch(20.27% 0.096 280.3)
XYZxyz(1.2831, 0.7157, 4.9200)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A40 #38400A
analogous
#0A1D40 #120A40 #2D0A40
triadic
#120A40 #40120A #0A4012
tetradic
#120A40 #400A1D #38400A #0A402D
square
#120A40 #400A1D #38400A #0A402D
split-complementary
#120A40 #402D0A #1D400A
monochromatic
#07041A #07041A #120A40 #211275 #301BAA

Accessibility & contrast

On white

18.37
#120A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#120A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120A40
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A40#FFFFFF#000000##FFFFFF
##120A401.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #120a40;
/* rgb */ color: rgb(18, 10, 64);
/* oklch */ color: oklch(20.3% 0.096 280.3);
Tailwind
colors: {
  custom: {
    50: '#574a75',
    500: '#120a40',
    950: '#000000',
  },
}
SCSS
$custom: #120a40;
$custom-light: #574a75;
$custom-dark: #000000;
JSON
{
  "hex": "#120a40",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 248.889,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20266,
    "c": 0.09588,
    "h": 280.3
  },
  "luminance": 0.00716
}

Semantic roles & 50–950 ramp

primary
#120A40
secondary
#717D29
accent
#F038D4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #120A40

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

Preview Lab → · Contrast checker → · Palette generator →

#120A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva