#120E40#120E40

#120E40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.0% C 0.091 H 278.7°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#120E40
RGBrgb(18, 14, 64)
HSLhsl(245, 64%, 15%)
HSVhsv(245, 78%, 25%)
CMYKcmyk(71.9%, 78.1%, 0%, 74.9%)
CIE-LABlab(7.34, 19.93, -31.07)
CIE-LCHlch(7.34, 36.91, 302.67°)
OKLaboklab(20.96% 0.0137 -0.0897)
OKLCHoklch(20.96% 0.091 278.7)
XYZxyz(1.3316, 0.8127, 4.9362)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120E40 #3C400E
analogous
#0E2340 #120E40 #2B0E40
triadic
#120E40 #40120E #0E4012
tetradic
#120E40 #400E23 #3C400E #0E402B
square
#120E40 #400E23 #3C400E #0E402B
split-complementary
#120E40 #402B0E #23400E
monochromatic
#070519 #070519 #120E40 #201972 #2E24A4

Accessibility & contrast

On white

18.06
#120E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#120E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120E40
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120E40#FFFFFF#000000##FFFFFF
##120E401.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #120e40;
/* rgb */ color: rgb(18, 14, 64);
/* oklch */ color: oklch(21.0% 0.091 278.7);
Tailwind
colors: {
  custom: {
    50: '#574d75',
    500: '#120e40',
    950: '#000000',
  },
}
SCSS
$custom: #120e40;
$custom-light: #574d75;
$custom-dark: #000000;
JSON
{
  "hex": "#120e40",
  "rgb": {
    "r": 18,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 244.8,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.20955,
    "c": 0.09075,
    "h": 278.7
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#120E40
secondary
#757B2F
accent
#E741DA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #120E40

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

Preview Lab → · Contrast checker → · Palette generator →

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