#121B42#121B42

#121B42 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.075 H 270.1°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#121B42
RGBrgb(18, 27, 66)
HSLhsl(229, 57%, 16%)
HSVhsv(229, 73%, 26%)
CMYKcmyk(72.7%, 59.1%, 0%, 74.1%)
CIE-LABlab(11.32, 11.05, -26.02)
CIE-LCHlch(11.32, 28.27, 293.02°)
OKLaboklab(23.96% 0.0001 -0.0747)
OKLCHoklch(23.96% 0.075 270.1)
XYZxyz(1.6244, 1.3057, 5.3196)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B42 #423912
analogous
#123342 #121B42 #211242
triadic
#121B42 #42121B #1B4212
tetradic
#121B42 #421233 #423912 #124221
square
#121B42 #421233 #423912 #124221
split-complementary
#121B42 #422112 #334212
monochromatic
#070A18 #070A18 #121B42 #1F2F72 #2C42A2

Accessibility & contrast

On white

16.65
#121B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#121B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B42
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B42#FFFFFF#000000##FFFFFF
##121B421.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042043
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#00242B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121b42;
/* rgb */ color: rgb(18, 27, 66);
/* oklch */ color: oklch(24.0% 0.075 270.1);
Tailwind
colors: {
  custom: {
    50: '#565677',
    500: '#121b42',
    950: '#000000',
  },
}
SCSS
$custom: #121b42;
$custom-light: #565677;
$custom-dark: #000000;
JSON
{
  "hex": "#121b42",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 66
  },
  "hsl": {
    "h": 228.75,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23962,
    "c": 0.07466,
    "h": 270.1
  },
  "luminance": 0.01306
}

Semantic roles & 50–950 ramp

primary
#121B42
secondary
#7B6E35
accent
#C447E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121B42

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

Preview Lab → · Contrast checker → · Palette generator →

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