#121851#121851

#121851 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.103 H 271.8°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#121851
RGBrgb(18, 24, 81)
HSLhsl(234, 64%, 19%)
HSVhsv(234, 78%, 32%)
CMYKcmyk(77.8%, 70.4%, 0%, 68.2%)
CIE-LABlab(11.79, 19.62, -35.63)
CIE-LCHlch(11.79, 40.68, 298.83°)
OKLaboklab(24.75% 0.0032 -0.1029)
OKLCHoklch(24.75% 0.103 271.8)
XYZxyz(2.0608, 1.3757, 7.9399)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121851 #514B12
analogous
#123851 #121851 #2C1251
triadic
#121851 #511218 #185112
tetradic
#121851 #511238 #514B12 #12512C
square
#121851 #511238 #514B12 #12512C
split-complementary
#121851 #512C12 #385112
monochromatic
#060719 #07091F #121851 #1D2783 #2836B5

Accessibility & contrast

On white

16.47
#121851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#121851 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121851
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121851#FFFFFF#000000##FFFFFF
##1218511.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#001C50
Tritanopia (blue-blind)
#002732
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121851;
/* rgb */ color: rgb(18, 24, 81);
/* oklch */ color: oklch(24.8% 0.103 271.8);
Tailwind
colors: {
  custom: {
    50: '#5b5482',
    500: '#121851',
    950: '#000000',
  },
}
SCSS
$custom: #121851;
$custom-light: #5b5482;
$custom-dark: #000000;
JSON
{
  "hex": "#121851",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 81
  },
  "hsl": {
    "h": 234.286,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2475,
    "c": 0.10299,
    "h": 271.8
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#121851
secondary
#8A8235
accent
#D741E7
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #121851

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

Preview Lab → · Contrast checker → · Palette generator →

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