#121A42#121A42

#121A42 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.7% C 0.076 H 271.0°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#121A42
RGBrgb(18, 26, 66)
HSLhsl(230, 57%, 16%)
HSVhsv(230, 73%, 26%)
CMYKcmyk(72.7%, 60.6%, 0%, 74.1%)
CIE-LABlab(11.00, 11.83, -26.53)
CIE-LCHlch(11.00, 29.05, 294.03°)
OKLaboklab(23.72% 0.0013 -0.0762)
OKLCHoklch(23.72% 0.076 271)
XYZxyz(1.6019, 1.2606, 5.3121)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A42 #423A12
analogous
#123242 #121A42 #221242
triadic
#121A42 #42121A #1A4212
tetradic
#121A42 #421232 #423A12 #124222
square
#121A42 #421232 #423A12 #124222
split-complementary
#121A42 #422212 #324212
monochromatic
#070918 #070918 #121A42 #1F2D72 #2C40A2

Accessibility & contrast

On white

16.77
#121A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121A42
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A42#FFFFFF#000000##FFFFFF
##121A421.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022043
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#00232B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121a42;
/* rgb */ color: rgb(18, 26, 66);
/* oklch */ color: oklch(23.7% 0.076 271.0);
Tailwind
colors: {
  custom: {
    50: '#565677',
    500: '#121a42',
    950: '#000000',
  },
}
SCSS
$custom: #121a42;
$custom-light: #565677;
$custom-dark: #000000;
JSON
{
  "hex": "#121a42",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 230,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23722,
    "c": 0.0762,
    "h": 271
  },
  "luminance": 0.01261
}

Semantic roles & 50–950 ramp

primary
#121A42
secondary
#7B6F35
accent
#C747E0
background
#F5F5F7
surface
#E9E8ED
border
#C5C4C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121A42

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

Preview Lab → · Contrast checker → · Palette generator →

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