#121D74#121D74

#121D74 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.147 H 268.7°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#121D74
RGBrgb(18, 29, 116)
HSLhsl(233, 73%, 26%)
HSVhsv(233, 84%, 45%)
CMYKcmyk(84.5%, 75%, 0%, 54.5%)
CIE-LABlab(16.83, 30.04, -50.56)
CIE-LCHlch(16.83, 58.82, 300.72°)
OKLaboklab(29.54% -0.0034 -0.1465)
OKLCHoklch(29.54% 0.147 268.7)
XYZxyz(3.8401, 2.2678, 16.7550)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D74 #746912
analogous
#124E74 #121D74 #381274
triadic
#121D74 #74121D #1D7412
tetradic
#121D74 #74124E #746912 #127438
square
#121D74 #74124E #746912 #127438
split-complementary
#121D74 #743812 #4E7412
monochromatic
#04071A #0A103F #121D74 #1A2AA9 #2338DD

Accessibility & contrast

On white

14.45
#121D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#121D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D74
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D74#FFFFFF#000000##FFFFFF
##121D741.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #121d74;
/* rgb */ color: rgb(18, 29, 116);
/* oklch */ color: oklch(29.5% 0.147 268.7);
Tailwind
colors: {
  custom: {
    50: '#64599d',
    500: '#121d74',
    950: '#000000',
  },
}
SCSS
$custom: #121d74;
$custom-light: #64599d;
$custom-dark: #000000;
JSON
{
  "hex": "#121d74",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 233.265,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29539,
    "c": 0.14655,
    "h": 268.7
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#121D74
secondary
#AB9E37
accent
#DB38F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121D74

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

Preview Lab → · Contrast checker → · Palette generator →

#121D74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva