#121954#121954

#121954 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.106 H 271.2°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#121954
RGBrgb(18, 25, 84)
HSLhsl(234, 65%, 20%)
HSVhsv(234, 79%, 33%)
CMYKcmyk(78.6%, 70.2%, 0%, 67.1%)
CIE-LABlab(12.38, 20.12, -36.73)
CIE-LCHlch(12.38, 41.88, 298.71°)
OKLaboklab(25.27% 0.0022 -0.1061)
OKLCHoklch(25.27% 0.106 271.2)
XYZxyz(2.1968, 1.4637, 8.5525)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121954 #544D12
analogous
#123A54 #121954 #2C1254
triadic
#121954 #541219 #195412
tetradic
#121954 #54123A #544D12 #12542C
square
#121954 #54123A #544D12 #12542C
split-complementary
#121954 #542C12 #3A5412
monochromatic
#050819 #070A22 #121954 #1D2886 #2837B9

Accessibility & contrast

On white

16.24
#121954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121954
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121954#FFFFFF#000000##FFFFFF
##1219541.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.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: #121954;
/* rgb */ color: rgb(18, 25, 84);
/* oklch */ color: oklch(25.3% 0.106 271.2);
Tailwind
colors: {
  custom: {
    50: '#5b5585',
    500: '#121954',
    950: '#000000',
  },
}
SCSS
$custom: #121954;
$custom-light: #5b5585;
$custom-dark: #000000;
JSON
{
  "hex": "#121954",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 233.636,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.25268,
    "c": 0.10616,
    "h": 271.2
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#121954
secondary
#8D8335
accent
#D640E8
background
#F5F4F8
surface
#E9E8EF
border
#C5C4CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121954

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

Preview Lab → · Contrast checker → · Palette generator →

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