#121B71#121B71

#121B71 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.145 H 269.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#121B71
RGBrgb(18, 27, 113)
HSLhsl(234, 73%, 26%)
HSVhsv(234, 84%, 44%)
CMYKcmyk(84.1%, 76.1%, 0%, 55.7%)
CIE-LABlab(16.03, 30.20, -49.96)
CIE-LCHlch(16.03, 58.38, 301.15°)
OKLaboklab(28.86% -0.0022 -0.1447)
OKLCHoklch(28.86% 0.145 269.1)
XYZxyz(3.6210, 2.1043, 15.8349)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B71 #716812
analogous
#124A71 #121B71 #381271
triadic
#121B71 #71121B #1B7112
tetradic
#121B71 #71124A #716812 #127138
square
#121B71 #71124A #716812 #127138
split-complementary
#121B71 #713812 #4A7112
monochromatic
#04061A #0A0E3C #121B71 #1A28A6 #2334DB

Accessibility & contrast

On white

14.78
#121B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#121B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B71
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B71#FFFFFF#000000##FFFFFF
##121B711.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121b71;
/* rgb */ color: rgb(18, 27, 113);
/* oklch */ color: oklch(28.9% 0.145 269.1);
Tailwind
colors: {
  custom: {
    50: '#64589b',
    500: '#121b71',
    950: '#000000',
  },
}
SCSS
$custom: #121b71;
$custom-light: #64589b;
$custom-dark: #000000;
JSON
{
  "hex": "#121b71",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 234.316,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28857,
    "c": 0.14476,
    "h": 269.1
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#121B71
secondary
#A89D37
accent
#DE39EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #121B71

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

Preview Lab → · Contrast checker → · Palette generator →

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