#121F74#121F74

#121F74 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.144 H 268.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#121F74
RGBrgb(18, 31, 116)
HSLhsl(232, 73%, 26%)
HSVhsv(232, 84%, 45%)
CMYKcmyk(84.5%, 73.3%, 0%, 54.5%)
CIE-LABlab(17.32, 28.72, -49.77)
CIE-LCHlch(17.32, 57.46, 299.98°)
OKLaboklab(29.89% -0.0043 -0.1442)
OKLCHoklch(29.89% 0.144 268.3)
XYZxyz(3.8907, 2.3691, 16.7718)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F74 #746712
analogous
#125074 #121F74 #361274
triadic
#121F74 #74121F #1F7412
tetradic
#121F74 #741250 #746712 #127436
square
#121F74 #741250 #746712 #127436
split-complementary
#121F74 #743612 #507412
monochromatic
#04071A #0A113F #121F74 #1A2DA9 #233CDD

Accessibility & contrast

On white

14.25
#121F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#121F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F74
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F74#FFFFFF#000000##FFFFFF
##121F741.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #121f74;
/* rgb */ color: rgb(18, 31, 116);
/* oklch */ color: oklch(29.9% 0.144 268.3);
Tailwind
colors: {
  custom: {
    50: '#645b9d',
    500: '#121f74',
    950: '#000000',
  },
}
SCSS
$custom: #121f74;
$custom-light: #645b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#121f74",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 232.041,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29885,
    "c": 0.14426,
    "h": 268.3
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#121F74
secondary
#AB9B37
accent
#D738F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #121F74

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

Preview Lab → · Contrast checker → · Palette generator →

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