#121A5E#121A5E

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

Color values

HEX#121A5E
RGBrgb(18, 26, 94)
HSLhsl(234, 68%, 22%)
HSVhsv(234, 81%, 37%)
CMYKcmyk(80.9%, 72.3%, 0%, 63.1%)
CIE-LABlab(13.68, 23.46, -41.32)
CIE-LCHlch(13.68, 47.52, 299.58°)
OKLaboklab(26.54% 0.0006 -0.1196)
OKLCHoklch(26.54% 0.12 270.3)
XYZxyz(2.6385, 1.6753, 10.7718)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A5E #5E5612
analogous
#12405E #121A5E #30125E
triadic
#121A5E #5E121A #1A5E12
tetradic
#121A5E #5E1240 #5E5612 #125E30
square
#121A5E #5E1240 #5E5612 #125E30
split-complementary
#121A5E #5E3012 #405E12
monochromatic
#05071A #080C2B #121A5E #1C2891 #2636C5

Accessibility & contrast

On white

15.73
#121A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121A5E
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A5E#FFFFFF#000000##FFFFFF
##121A5E1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121a5e;
/* rgb */ color: rgb(18, 26, 94);
/* oklch */ color: oklch(26.5% 0.120 270.3);
Tailwind
colors: {
  custom: {
    50: '#5e568c',
    500: '#121a5e',
    950: '#000000',
  },
}
SCSS
$custom: #121a5e;
$custom-light: #5e568c;
$custom-dark: #000000;
JSON
{
  "hex": "#121a5e",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 233.684,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26538,
    "c": 0.11958,
    "h": 270.3
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#121A5E
secondary
#968C35
accent
#D83DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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