#120F74#120F74

#120F74 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.5% C 0.160 H 270.3°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#120F74
RGBrgb(18, 15, 116)
HSLhsl(242, 77%, 26%)
HSVhsv(242, 87%, 45%)
CMYKcmyk(84.5%, 87.1%, 0%, 54.5%)
CIE-LABlab(14.01, 38.14, -55.25)
CIE-LCHlch(14.01, 67.13, 304.62°)
OKLaboklab(27.55% 0.0008 -0.1599)
OKLCHoklch(27.55% 0.16 270.3)
XYZxyz(3.5716, 1.7308, 16.6654)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F74 #71740F
analogous
#0F3E74 #120F74 #440F74
triadic
#120F74 #74120F #0F7412
tetradic
#120F74 #740F3E #71740F #0F7444
square
#120F74 #740F3E #71740F #0F7444
split-complementary
#120F74 #74440F #3E740F
monochromatic
#04041B #0A083E #120F74 #1A16AA #231DE0

Accessibility & contrast

On white

15.60
#120F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#120F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F74
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F74#FFFFFF#000000##FFFFFF
##120F741.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002977
Deuteranopia (green-blind)
#001E72
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #120f74;
/* rgb */ color: rgb(18, 15, 116);
/* oklch */ color: oklch(27.5% 0.160 270.3);
Tailwind
colors: {
  custom: {
    50: '#66519d',
    500: '#120f74',
    950: '#000000',
  },
}
SCSS
$custom: #120f74;
$custom-light: #66519d;
$custom-dark: #000000;
JSON
{
  "hex": "#120f74",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 116
  },
  "hsl": {
    "h": 241.782,
    "s": 77.099,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27545,
    "c": 0.1599,
    "h": 270.3
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#120F74
secondary
#A8AC33
accent
#F434EE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #120F74

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

Preview Lab → · Contrast checker → · Palette generator →

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