#121B40#121B40

#121B40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.8% C 0.071 H 269.9°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#121B40
RGBrgb(18, 27, 64)
HSLhsl(228, 56%, 16%)
HSVhsv(228, 72%, 25%)
CMYKcmyk(71.9%, 57.8%, 0%, 74.9%)
CIE-LABlab(11.15, 10.21, -24.87)
CIE-LCHlch(11.15, 26.89, 292.31°)
OKLaboklab(23.79% -0.0001 -0.0713)
OKLCHoklch(23.79% 0.071 269.9)
XYZxyz(1.5665, 1.2825, 5.0145)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B40 #403712
analogous
#123240 #121B40 #201240
triadic
#121B40 #40121B #1B4012
tetradic
#121B40 #401232 #403712 #124020
square
#121B40 #401232 #403712 #124020
split-complementary
#121B40 #402012 #324012
monochromatic
#070A18 #070A18 #121B40 #1F2F70 #2D43A0

Accessibility & contrast

On white

16.71
#121B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121B40
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B40#FFFFFF#000000##FFFFFF
##121B401.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062041
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121b40;
/* rgb */ color: rgb(18, 27, 64);
/* oklch */ color: oklch(23.8% 0.071 269.9);
Tailwind
colors: {
  custom: {
    50: '#565675',
    500: '#121b40',
    950: '#000000',
  },
}
SCSS
$custom: #121b40;
$custom-light: #565675;
$custom-dark: #000000;
JSON
{
  "hex": "#121b40",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 228.261,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23787,
    "c": 0.07129,
    "h": 269.9
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#121B40
secondary
#796C35
accent
#C248DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121B40

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

Preview Lab → · Contrast checker → · Palette generator →

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