#120948#120948

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

Color values

HEX#120948
RGBrgb(18, 9, 72)
HSLhsl(249, 78%, 16%)
HSVhsv(249, 88%, 28%)
CMYKcmyk(75%, 87.5%, 0%, 71.8%)
CIE-LABlab(7.15, 26.08, -37.04)
CIE-LCHlch(7.15, 45.30, 305.16°)
OKLaboklab(21.1% 0.0154 -0.1071)
OKLCHoklch(21.1% 0.108 278.2)
XYZxyz(1.5165, 0.7917, 6.2025)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120948 #3F4809
analogous
#091F48 #120948 #310948
triadic
#120948 #481209 #094812
tetradic
#120948 #48091F #3F4809 #094831
square
#120948 #48091F #3F4809 #094831
split-complementary
#120948 #483109 #1F4809
monochromatic
#07031B #07031B #120948 #20107E #2D17B5

Accessibility & contrast

On white

18.13
#120948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#120948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120948
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120948#FFFFFF#000000##FFFFFF
##1209481.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00184A
Deuteranopia (green-blind)
#001347
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #120948;
/* rgb */ color: rgb(18, 9, 72);
/* oklch */ color: oklch(21.1% 0.108 278.2);
Tailwind
colors: {
  custom: {
    50: '#5a4a7c',
    500: '#120948',
    950: '#000000',
  },
}
SCSS
$custom: #120948;
$custom-light: #5a4a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#120948",
  "rgb": {
    "r": 18,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 248.571,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21095,
    "c": 0.10825,
    "h": 278.2
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#120948
secondary
#788527
accent
#F434D9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #120948

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

Preview Lab → · Contrast checker → · Palette generator →

#120948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva