#121B5E#121B5E

#121B5E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.118 H 270.0°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#121B5E
RGBrgb(18, 27, 94)
HSLhsl(233, 68%, 22%)
HSVhsv(233, 81%, 37%)
CMYKcmyk(80.9%, 71.3%, 0%, 63.1%)
CIE-LABlab(13.95, 22.75, -40.89)
CIE-LCHlch(13.95, 46.79, 299.09°)
OKLaboklab(26.73% 0 -0.1183)
OKLCHoklch(26.73% 0.118 270)
XYZxyz(2.6611, 1.7203, 10.7793)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B5E #5E5512
analogous
#12415E #121B5E #2F125E
triadic
#121B5E #5E121B #1B5E12
tetradic
#121B5E #5E1241 #5E5512 #125E2F
square
#121B5E #5E1241 #5E5512 #125E2F
split-complementary
#121B5E #5E2F12 #415E12
monochromatic
#05071A #080C2B #121B5E #1C2A91 #2639C5

Accessibility & contrast

On white

15.62
#121B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121B5E
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B5E#FFFFFF#000000##FFFFFF
##121B5E1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121b5e;
/* rgb */ color: rgb(18, 27, 94);
/* oklch */ color: oklch(26.7% 0.118 270.0);
Tailwind
colors: {
  custom: {
    50: '#5e578c',
    500: '#121b5e',
    950: '#000000',
  },
}
SCSS
$custom: #121b5e;
$custom-light: #5e578c;
$custom-dark: #000000;
JSON
{
  "hex": "#121b5e",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 232.895,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2673,
    "c": 0.11831,
    "h": 270
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#121B5E
secondary
#968B35
accent
#D63DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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