#121A71#121A71

#121A71 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.146 H 269.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#121A71
RGBrgb(18, 26, 113)
HSLhsl(235, 73%, 26%)
HSVhsv(235, 84%, 44%)
CMYKcmyk(84.1%, 77%, 0%, 55.7%)
CIE-LABlab(15.79, 30.85, -50.34)
CIE-LCHlch(15.79, 59.04, 301.50°)
OKLaboklab(28.69% -0.0018 -0.1458)
OKLCHoklch(28.69% 0.146 269.3)
XYZxyz(3.5985, 2.0592, 15.8274)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A71 #716912
analogous
#124971 #121A71 #391271
triadic
#121A71 #71121A #1A7112
tetradic
#121A71 #711249 #716912 #127139
square
#121A71 #711249 #716912 #127139
split-complementary
#121A71 #713912 #497112
monochromatic
#04061A #0A0E3C #121A71 #1A26A6 #2332DB

Accessibility & contrast

On white

14.87
#121A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#121A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121A71
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A71#FFFFFF#000000##FFFFFF
##121A711.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #121a71;
/* rgb */ color: rgb(18, 26, 113);
/* oklch */ color: oklch(28.7% 0.146 269.3);
Tailwind
colors: {
  custom: {
    50: '#64579b',
    500: '#121a71',
    950: '#000000',
  },
}
SCSS
$custom: #121a71;
$custom-light: #64579b;
$custom-dark: #000000;
JSON
{
  "hex": "#121a71",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 234.947,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28693,
    "c": 0.14585,
    "h": 269.3
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#121A71
secondary
#A89E37
accent
#E039EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #121A71

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

Preview Lab → · Contrast checker → · Palette generator →

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