#121854#121854

#121854 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.108 H 271.6°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#121854
RGBrgb(18, 24, 84)
HSLhsl(235, 65%, 20%)
HSVhsv(235, 79%, 33%)
CMYKcmyk(78.6%, 71.4%, 0%, 67.1%)
CIE-LABlab(12.10, 20.84, -37.18)
CIE-LCHlch(12.10, 42.62, 299.28°)
OKLaboklab(25.07% 0.0029 -0.1075)
OKLCHoklch(25.07% 0.108 271.6)
XYZxyz(2.1758, 1.4217, 8.5455)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121854 #544E12
analogous
#123954 #121854 #2D1254
triadic
#121854 #541218 #185412
tetradic
#121854 #541239 #544E12 #12542D
square
#121854 #541239 #544E12 #12542D
split-complementary
#121854 #542D12 #395412
monochromatic
#050719 #070A22 #121854 #1D2686 #2835B9

Accessibility & contrast

On white

16.35
#121854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121854
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121854#FFFFFF#000000##FFFFFF
##1218541.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#001D53
Tritanopia (blue-blind)
#002833
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121854;
/* rgb */ color: rgb(18, 24, 84);
/* oklch */ color: oklch(25.1% 0.108 271.6);
Tailwind
colors: {
  custom: {
    50: '#5c5485',
    500: '#121854',
    950: '#000000',
  },
}
SCSS
$custom: #121854;
$custom-light: #5c5485;
$custom-dark: #000000;
JSON
{
  "hex": "#121854",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 84
  },
  "hsl": {
    "h": 234.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.25068,
    "c": 0.10751,
    "h": 271.6
  },
  "luminance": 0.01422
}

Semantic roles & 50–950 ramp

primary
#121854
secondary
#8D8535
accent
#D840E8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121854

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

Preview Lab → · Contrast checker → · Palette generator →

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