#120F72#120F72

#120F72 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.3% C 0.157 H 270.5°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#120F72
RGBrgb(18, 15, 114)
HSLhsl(242, 77%, 25%)
HSVhsv(242, 87%, 45%)
CMYKcmyk(84.2%, 86.8%, 0%, 55.3%)
CIE-LABlab(13.74, 37.47, -54.40)
CIE-LCHlch(13.74, 66.06, 304.56°)
OKLaboklab(27.28% 0.0013 -0.1574)
OKLCHoklch(27.28% 0.157 270.5)
XYZxyz(3.4565, 1.6848, 16.0593)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F72 #6F720F
analogous
#0F3E72 #120F72 #430F72
triadic
#120F72 #72120F #0F7212
tetradic
#120F72 #720F3E #6F720F #0F7243
square
#120F72 #720F3E #6F720F #0F7243
split-complementary
#120F72 #72430F #3E720F
monochromatic
#04041B #09083C #120F72 #1B16A8 #231DDE

Accessibility & contrast

On white

15.71
#120F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#120F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F72
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F72#FFFFFF#000000##FFFFFF
##120F721.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002875
Deuteranopia (green-blind)
#001E70
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #120f72;
/* rgb */ color: rgb(18, 15, 114);
/* oklch */ color: oklch(27.3% 0.157 270.5);
Tailwind
colors: {
  custom: {
    50: '#65519c',
    500: '#120f72',
    950: '#000000',
  },
}
SCSS
$custom: #120f72;
$custom-light: #65519c;
$custom-dark: #000000;
JSON
{
  "hex": "#120f72",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 114
  },
  "hsl": {
    "h": 241.818,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27283,
    "c": 0.15745,
    "h": 270.5
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#120F72
secondary
#A6AA33
accent
#F335EE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #120F72

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

Preview Lab → · Contrast checker → · Palette generator →

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