#121C54#121C54

#121C54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.102 H 269.9°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#121C54
RGBrgb(18, 28, 84)
HSLhsl(231, 65%, 20%)
HSVhsv(231, 79%, 33%)
CMYKcmyk(78.6%, 66.7%, 0%, 67.1%)
CIE-LABlab(13.22, 17.91, -35.34)
CIE-LCHlch(13.22, 39.62, 296.87°)
OKLaboklab(25.89% -0.0002 -0.102)
OKLCHoklch(25.89% 0.102 269.9)
XYZxyz(2.2644, 1.5990, 8.5751)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C54 #544A12
analogous
#123D54 #121C54 #291254
triadic
#121C54 #54121C #1C5412
tetradic
#121C54 #54123D #544A12 #125429
square
#121C54 #54123D #544A12 #125429
split-complementary
#121C54 #542912 #3D5412
monochromatic
#050819 #070B22 #121C54 #1D2D86 #283EB9

Accessibility & contrast

On white

15.91
#121C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#121C54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C54
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C54#FFFFFF#000000##FFFFFF
##121C541.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121c54;
/* rgb */ color: rgb(18, 28, 84);
/* oklch */ color: oklch(25.9% 0.102 269.9);
Tailwind
colors: {
  custom: {
    50: '#5b5785',
    500: '#121c54',
    950: '#000000',
  },
}
SCSS
$custom: #121c54;
$custom-light: #5b5785;
$custom-dark: #000000;
JSON
{
  "hex": "#121c54",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 84
  },
  "hsl": {
    "h": 230.909,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.25893,
    "c": 0.10205,
    "h": 269.9
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#121C54
secondary
#8D7F35
accent
#CE40E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121C54

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

Preview Lab → · Contrast checker → · Palette generator →

#121C54 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva