#121E55#121E55

#121E55 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.101 H 268.9°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#121E55
RGBrgb(18, 30, 85)
HSLhsl(229, 65%, 20%)
HSVhsv(229, 79%, 33%)
CMYKcmyk(78.8%, 64.7%, 0%, 66.7%)
CIE-LABlab(13.90, 16.84, -34.91)
CIE-LCHlch(13.90, 38.76, 295.74°)
OKLaboklab(26.42% -0.0019 -0.1008)
OKLCHoklch(26.42% 0.101 268.9)
XYZxyz(2.3529, 1.7128, 8.7992)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E55 #554912
analogous
#123F55 #121E55 #281255
triadic
#121E55 #55121E #1E5512
tetradic
#121E55 #55123F #554912 #125528
square
#121E55 #55123F #554912 #125528
split-complementary
#121E55 #552812 #3F5512
monochromatic
#050919 #070C22 #121E55 #1D3088 #2742BA

Accessibility & contrast

On white

15.64
#121E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#121E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E55
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E55#FFFFFF#000000##FFFFFF
##121E551.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121e55;
/* rgb */ color: rgb(18, 30, 85);
/* oklch */ color: oklch(26.4% 0.101 268.9);
Tailwind
colors: {
  custom: {
    50: '#5b5985',
    500: '#121e55',
    950: '#000000',
  },
}
SCSS
$custom: #121e55;
$custom-light: #5b5985;
$custom-dark: #000000;
JSON
{
  "hex": "#121e55",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 85
  },
  "hsl": {
    "h": 229.254,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26425,
    "c": 0.10079,
    "h": 268.9
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#121E55
secondary
#8E7E35
accent
#CA40E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121E55

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

Preview Lab → · Contrast checker → · Palette generator →

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