#120F76#120F76

#120F76 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.162 H 270.1°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#120F76
RGBrgb(18, 15, 118)
HSLhsl(242, 77%, 26%)
HSVhsv(242, 87%, 46%)
CMYKcmyk(84.7%, 87.3%, 0%, 53.7%)
CIE-LABlab(14.28, 38.80, -56.09)
CIE-LCHlch(14.28, 68.20, 304.67°)
OKLaboklab(27.81% 0.0003 -0.1623)
OKLCHoklch(27.81% 0.162 270.1)
XYZxyz(3.6892, 1.7778, 17.2847)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F76 #73760F
analogous
#0F3F76 #120F76 #450F76
triadic
#120F76 #76120F #0F7612
tetradic
#120F76 #760F3F #73760F #0F7645
square
#120F76 #760F3F #73760F #0F7645
split-complementary
#120F76 #76450F #3F760F
monochromatic
#04031B #0A0840 #120F76 #1A16AC #231DE2

Accessibility & contrast

On white

15.49
#120F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#120F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F76
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F76#FFFFFF#000000##FFFFFF
##120F761.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002979
Deuteranopia (green-blind)
#001F74
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #120f76;
/* rgb */ color: rgb(18, 15, 118);
/* oklch */ color: oklch(27.8% 0.162 270.1);
Tailwind
colors: {
  custom: {
    50: '#66519f',
    500: '#120f76',
    950: '#000000',
  },
}
SCSS
$custom: #120f76;
$custom-light: #66519f;
$custom-dark: #000000;
JSON
{
  "hex": "#120f76",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 241.748,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.27807,
    "c": 0.16234,
    "h": 270.1
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#120F76
secondary
#AAAD33
accent
#F434EE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020F
muted
#7A787E

Preview Lab

Preview with #120F76

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

Preview Lab → · Contrast checker → · Palette generator →

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