#121B54#121B54

#121B54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.103 H 270.3°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#121B54
RGBrgb(18, 27, 84)
HSLhsl(232, 65%, 20%)
HSVhsv(232, 79%, 33%)
CMYKcmyk(78.6%, 67.9%, 0%, 67.1%)
CIE-LABlab(12.94, 18.65, -35.81)
CIE-LCHlch(12.94, 40.38, 297.51°)
OKLaboklab(25.68% 0.0006 -0.1034)
OKLCHoklch(25.68% 0.103 270.3)
XYZxyz(2.2411, 1.5523, 8.5673)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B54 #544B12
analogous
#123C54 #121B54 #2A1254
triadic
#121B54 #54121B #1B5412
tetradic
#121B54 #54123C #544B12 #12542A
square
#121B54 #54123C #544B12 #12542A
split-complementary
#121B54 #542A12 #3C5412
monochromatic
#050819 #070B22 #121B54 #1D2B86 #283BB9

Accessibility & contrast

On white

16.02
#121B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#121B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B54
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B54#FFFFFF#000000##FFFFFF
##121B541.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#001E53
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121b54;
/* rgb */ color: rgb(18, 27, 84);
/* oklch */ color: oklch(25.7% 0.103 270.3);
Tailwind
colors: {
  custom: {
    50: '#5b5785',
    500: '#121b54',
    950: '#000000',
  },
}
SCSS
$custom: #121b54;
$custom-light: #5b5785;
$custom-dark: #000000;
JSON
{
  "hex": "#121b54",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 231.818,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.25681,
    "c": 0.10343,
    "h": 270.3
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#121B54
secondary
#8D8135
accent
#D140E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121B54

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

Preview Lab → · Contrast checker → · Palette generator →

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