#121535#121535

#121535 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.062 H 275.8°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#121535
RGBrgb(18, 21, 53)
HSLhsl(235, 49%, 14%)
HSVhsv(235, 66%, 21%)
CMYKcmyk(66%, 60.4%, 0%, 79.2%)
CIE-LABlab(8.32, 10.28, -21.56)
CIE-LCHlch(8.32, 23.88, 295.49°)
OKLaboklab(21.37% 0.0063 -0.0616)
OKLCHoklch(21.37% 0.062 275.8)
XYZxyz(1.1600, 0.9219, 3.4843)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121535 #353212
analogous
#122735 #121535 #211235
triadic
#121535 #351215 #153512
tetradic
#121535 #351227 #353212 #123521
square
#121535 #351227 #353212 #123521
split-complementary
#121535 #352112 #273512
monochromatic
#080917 #080917 #121535 #222763 #313990

Accessibility & contrast

On white

17.73
#121535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#121535 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121535
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121535#FFFFFF#000000##FFFFFF
##1215351.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051A36
Deuteranopia (green-blind)
#021734
Tritanopia (blue-blind)
#021C22
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #121535;
/* rgb */ color: rgb(18, 21, 53);
/* oklch */ color: oklch(21.4% 0.062 275.8);
Tailwind
colors: {
  custom: {
    50: '#54526c',
    500: '#121535',
    950: '#000000',
  },
}
SCSS
$custom: #121535;
$custom-light: #54526c;
$custom-dark: #000000;
JSON
{
  "hex": "#121535",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 53
  },
  "hsl": {
    "h": 234.857,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21367,
    "c": 0.06194,
    "h": 275.8
  },
  "luminance": 0.00922
}

Semantic roles & 50–950 ramp

primary
#121535
secondary
#6D6935
accent
#CD4FD9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#030207
muted
#78787A

Preview Lab

Preview with #121535

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

Preview Lab → · Contrast checker → · Palette generator →

#121535 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva