#121E56#121E56

#121E56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.102 H 269.0°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#121E56
RGBrgb(18, 30, 86)
HSLhsl(229, 65%, 20%)
HSVhsv(229, 79%, 34%)
CMYKcmyk(79.1%, 65.1%, 0%, 66.3%)
CIE-LABlab(13.99, 17.26, -35.44)
CIE-LCHlch(13.99, 39.42, 295.96°)
OKLaboklab(26.52% -0.0019 -0.1023)
OKLCHoklch(26.52% 0.102 269)
XYZxyz(2.3929, 1.7288, 9.0099)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E56 #564A12
analogous
#124056 #121E56 #281256
triadic
#121E56 #56121E #1E5612
tetradic
#121E56 #561240 #564A12 #125628
square
#121E56 #561240 #564A12 #125628
split-complementary
#121E56 #562812 #405612
monochromatic
#050919 #070C23 #121E56 #1D3089 #2741BB

Accessibility & contrast

On white

15.60
#121E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121E56
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E56#FFFFFF#000000##FFFFFF
##121E561.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121e56;
/* rgb */ color: rgb(18, 30, 86);
/* oklch */ color: oklch(26.5% 0.102 269.0);
Tailwind
colors: {
  custom: {
    50: '#5b5986',
    500: '#121e56',
    950: '#000000',
  },
}
SCSS
$custom: #121e56;
$custom-light: #5b5986;
$custom-dark: #000000;
JSON
{
  "hex": "#121e56",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 229.412,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26522,
    "c": 0.10233,
    "h": 269
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#121E56
secondary
#8F7F35
accent
#CB3FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121E56

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

Preview Lab → · Contrast checker → · Palette generator →

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