#121D71#121D71

#121D71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.142 H 268.8°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#121D71
RGBrgb(18, 29, 113)
HSLhsl(233, 73%, 26%)
HSVhsv(233, 84%, 44%)
CMYKcmyk(84.1%, 74.3%, 0%, 55.7%)
CIE-LABlab(16.50, 28.89, -49.18)
CIE-LCHlch(16.50, 57.03, 300.43°)
OKLaboklab(29.2% -0.0031 -0.1425)
OKLCHoklch(29.2% 0.143 268.8)
XYZxyz(3.6684, 2.1992, 15.8507)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D71 #716612
analogous
#124C71 #121D71 #371271
triadic
#121D71 #71121D #1D7112
tetradic
#121D71 #71124C #716612 #127137
square
#121D71 #71124C #716612 #127137
split-complementary
#121D71 #713712 #4C7112
monochromatic
#04071A #0A0F3C #121D71 #1A2BA6 #2338DB

Accessibility & contrast

On white

14.58
#121D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#121D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D71
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D71#FFFFFF#000000##FFFFFF
##121D711.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121d71;
/* rgb */ color: rgb(18, 29, 113);
/* oklch */ color: oklch(29.2% 0.142 268.8);
Tailwind
colors: {
  custom: {
    50: '#63599b',
    500: '#121d71',
    950: '#000000',
  },
}
SCSS
$custom: #121d71;
$custom-light: #63599b;
$custom-dark: #000000;
JSON
{
  "hex": "#121d71",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 233.053,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29198,
    "c": 0.1425,
    "h": 268.8
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#121D71
secondary
#A89B37
accent
#DA39EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #121D71

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

Preview Lab → · Contrast checker → · Palette generator →

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