#121C71#121C71

#121C71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.0% C 0.144 H 268.9°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#121C71
RGBrgb(18, 28, 113)
HSLhsl(234, 73%, 26%)
HSVhsv(234, 84%, 44%)
CMYKcmyk(84.1%, 75.2%, 0%, 55.7%)
CIE-LABlab(16.26, 29.55, -49.57)
CIE-LCHlch(16.26, 57.71, 300.80°)
OKLaboklab(29.03% -0.0026 -0.1436)
OKLCHoklch(29.03% 0.144 268.9)
XYZxyz(3.6443, 2.1509, 15.8427)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C71 #716712
analogous
#124B71 #121C71 #371271
triadic
#121C71 #71121C #1C7112
tetradic
#121C71 #71124B #716712 #127137
square
#121C71 #71124B #716712 #127137
split-complementary
#121C71 #713712 #4B7112
monochromatic
#04071A #0A0F3C #121C71 #1A29A6 #2336DB

Accessibility & contrast

On white

14.68
#121C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#121C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C71
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C71#FFFFFF#000000##FFFFFF
##121C711.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #121c71;
/* rgb */ color: rgb(18, 28, 113);
/* oklch */ color: oklch(29.0% 0.144 268.9);
Tailwind
colors: {
  custom: {
    50: '#64589b',
    500: '#121c71',
    950: '#000000',
  },
}
SCSS
$custom: #121c71;
$custom-light: #64589b;
$custom-dark: #000000;
JSON
{
  "hex": "#121c71",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 233.684,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29026,
    "c": 0.14364,
    "h": 268.9
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#121C71
secondary
#A89C37
accent
#DC39EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #121C71

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

Preview Lab → · Contrast checker → · Palette generator →

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