#120F40#120F40

#120F40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.089 H 278.2°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#120F40
RGBrgb(18, 15, 64)
HSLhsl(244, 62%, 15%)
HSVhsv(244, 77%, 25%)
CMYKcmyk(71.9%, 76.6%, 0%, 74.9%)
CIE-LABlab(7.59, 19.27, -30.66)
CIE-LCHlch(7.59, 36.21, 302.14°)
OKLaboklab(21.14% 0.0128 -0.0885)
OKLCHoklch(21.14% 0.089 278.2)
XYZxyz(1.3454, 0.8403, 4.9408)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F40 #3D400F
analogous
#0F2440 #120F40 #2A0F40
triadic
#120F40 #40120F #0F4012
tetradic
#120F40 #400F24 #3D400F #0F402A
square
#120F40 #400F24 #3D400F #0F402A
split-complementary
#120F40 #402A0F #24400F
monochromatic
#070619 #070619 #120F40 #201B72 #2E26A3

Accessibility & contrast

On white

17.98
#120F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#120F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F40
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F40#FFFFFF#000000##FFFFFF
##120F401.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#001C25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120f40;
/* rgb */ color: rgb(18, 15, 64);
/* oklch */ color: oklch(21.1% 0.089 278.2);
Tailwind
colors: {
  custom: {
    50: '#574d75',
    500: '#120f40',
    950: '#000000',
  },
}
SCSS
$custom: #120f40;
$custom-light: #574d75;
$custom-dark: #000000;
JSON
{
  "hex": "#120f40",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 243.673,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21143,
    "c": 0.08938,
    "h": 278.2
  },
  "luminance": 0.0084
}

Semantic roles & 50–950 ramp

primary
#120F40
secondary
#767A30
accent
#E543DB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #120F40

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

Preview Lab → · Contrast checker → · Palette generator →

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