#121B38#121B38

#121B38 is a very dark, muted blue. Relative luminance 0.012; OKLCH L 23.1% C 0.057 H 268.6°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#121B38
RGBrgb(18, 27, 56)
HSLhsl(226, 51%, 15%)
HSVhsv(226, 68%, 22%)
CMYKcmyk(67.9%, 51.8%, 0%, 78%)
CIE-LABlab(10.54, 6.83, -20.17)
CIE-LCHlch(10.54, 21.29, 288.72°)
OKLaboklab(23.13% -0.0014 -0.0574)
OKLCHoklch(23.13% 0.057 268.6)
XYZxyz(1.3550, 1.1979, 3.9004)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B38 #382F12
analogous
#122E38 #121B38 #1C1238
triadic
#121B38 #38121B #1B3812
tetradic
#121B38 #38122E #382F12 #12381C
square
#121B38 #38122E #382F12 #12381C
split-complementary
#121B38 #381C12 #2E3812
monochromatic
#070B17 #070B17 #121B38 #213166 #304895

Accessibility & contrast

On white

16.94
#121B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#121B38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B38
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B38#FFFFFF#000000##FFFFFF
##121B381.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1E39
Deuteranopia (green-blind)
#091B37
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121b38;
/* rgb */ color: rgb(18, 27, 56);
/* oklch */ color: oklch(23.1% 0.057 268.6);
Tailwind
colors: {
  custom: {
    50: '#54566f',
    500: '#121b38',
    950: '#000000',
  },
}
SCSS
$custom: #121b38;
$custom-light: #54566f;
$custom-dark: #000000;
JSON
{
  "hex": "#121b38",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 56
  },
  "hsl": {
    "h": 225.789,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23126,
    "c": 0.05747,
    "h": 268.6
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#121B38
secondary
#716335
accent
#B94DDB
background
#F4F5F6
surface
#E8E9EC
border
#C4C5C7
text
#030307
muted
#78787A

Preview Lab

Preview with #121B38

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

Preview Lab → · Contrast checker → · Palette generator →

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