#121754#121754

#121754 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.109 H 271.9°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#121754
RGBrgb(18, 23, 84)
HSLhsl(235, 65%, 20%)
HSVhsv(235, 79%, 33%)
CMYKcmyk(78.6%, 72.6%, 0%, 67.1%)
CIE-LABlab(11.83, 21.56, -37.62)
CIE-LCHlch(11.83, 43.36, 299.82°)
OKLaboklab(24.87% 0.0037 -0.1088)
OKLCHoklch(24.87% 0.109 271.9)
XYZxyz(2.1555, 1.3813, 8.5388)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121754 #544F12
analogous
#123854 #121754 #2E1254
triadic
#121754 #541217 #175412
tetradic
#121754 #541238 #544F12 #12542E
square
#121754 #541238 #544F12 #12542E
split-complementary
#121754 #542E12 #385412
monochromatic
#050719 #070922 #121754 #1D2586 #2833B9

Accessibility & contrast

On white

16.46
#121754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121754
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121754#FFFFFF#000000##FFFFFF
##1217541.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#001C53
Tritanopia (blue-blind)
#002733
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121754;
/* rgb */ color: rgb(18, 23, 84);
/* oklch */ color: oklch(24.9% 0.109 271.9);
Tailwind
colors: {
  custom: {
    50: '#5c5485',
    500: '#121754',
    950: '#000000',
  },
}
SCSS
$custom: #121754;
$custom-light: #5c5485;
$custom-dark: #000000;
JSON
{
  "hex": "#121754",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 235.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.24872,
    "c": 0.10882,
    "h": 271.9
  },
  "luminance": 0.01381
}

Semantic roles & 50–950 ramp

primary
#121754
secondary
#8D8635
accent
#DB40E8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #121754

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

Preview Lab → · Contrast checker → · Palette generator →

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