#121F54#121F54

#121F54 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.098 H 268.4°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#121F54
RGBrgb(18, 31, 84)
HSLhsl(228, 65%, 20%)
HSVhsv(228, 79%, 33%)
CMYKcmyk(78.6%, 63.1%, 0%, 67.1%)
CIE-LABlab(14.11, 15.66, -33.90)
CIE-LCHlch(14.11, 37.35, 294.80°)
OKLaboklab(26.55% -0.0027 -0.0978)
OKLCHoklch(26.55% 0.098 268.4)
XYZxyz(2.3391, 1.7484, 8.6000)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F54 #544712
analogous
#124054 #121F54 #261254
triadic
#121F54 #54121F #1F5412
tetradic
#121F54 #541240 #544712 #125426
square
#121F54 #541240 #544712 #125426
split-complementary
#121F54 #542612 #405412
monochromatic
#050919 #070C22 #121F54 #1D3286 #2844B9

Accessibility & contrast

On white

15.56
#121F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#121F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F54
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F54#FFFFFF#000000##FFFFFF
##121F541.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121f54;
/* rgb */ color: rgb(18, 31, 84);
/* oklch */ color: oklch(26.6% 0.098 268.4);
Tailwind
colors: {
  custom: {
    50: '#5b5a85',
    500: '#121f54',
    950: '#000000',
  },
}
SCSS
$custom: #121f54;
$custom-light: #5b5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#121f54",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 228.182,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.2655,
    "c": 0.09782,
    "h": 268.4
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#121F54
secondary
#8D7C35
accent
#C740E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121F54

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

Preview Lab → · Contrast checker → · Palette generator →

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