#121A38#121A38

#121A38 is a very dark, muted blue. Relative luminance 0.012; OKLCH L 22.9% C 0.059 H 270.0°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#121A38
RGBrgb(18, 26, 56)
HSLhsl(227, 51%, 15%)
HSVhsv(227, 68%, 22%)
CMYKcmyk(67.9%, 53.6%, 0%, 78%)
CIE-LABlab(10.20, 7.61, -20.71)
CIE-LCHlch(10.20, 22.06, 290.18°)
OKLaboklab(22.87% 0 -0.059)
OKLCHoklch(22.87% 0.059 270)
XYZxyz(1.3324, 1.1528, 3.8929)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A38 #383012
analogous
#122D38 #121A38 #1D1238
triadic
#121A38 #38121A #1A3812
tetradic
#121A38 #38122D #383012 #12381D
square
#121A38 #38122D #383012 #12381D
split-complementary
#121A38 #381D12 #2D3812
monochromatic
#070B17 #070B17 #121A38 #213066 #304595

Accessibility & contrast

On white

17.06
#121A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#121A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121A38
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A38#FFFFFF#000000##FFFFFF
##121A381.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1E39
Deuteranopia (green-blind)
#071A37
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #121a38;
/* rgb */ color: rgb(18, 26, 56);
/* oklch */ color: oklch(22.9% 0.059 270.0);
Tailwind
colors: {
  custom: {
    50: '#54566f',
    500: '#121a38',
    950: '#000000',
  },
}
SCSS
$custom: #121a38;
$custom-light: #54566f;
$custom-dark: #000000;
JSON
{
  "hex": "#121a38",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 56
  },
  "hsl": {
    "h": 227.368,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22868,
    "c": 0.05905,
    "h": 270
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#121A38
secondary
#716435
accent
#BD4DDB
background
#F5F5F6
surface
#E8E8EC
border
#C4C4C7
text
#030307
muted
#78787A

Preview Lab

Preview with #121A38

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

Preview Lab → · Contrast checker → · Palette generator →

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