#121B5C#121B5C

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

Color values

HEX#121B5C
RGBrgb(18, 27, 92)
HSLhsl(233, 67%, 22%)
HSVhsv(233, 80%, 36%)
CMYKcmyk(80.4%, 70.7%, 0%, 63.9%)
CIE-LABlab(13.74, 21.94, -39.89)
CIE-LCHlch(13.74, 45.53, 298.81°)
OKLaboklab(26.52% 0.0001 -0.1154)
OKLCHoklch(26.52% 0.115 270.1)
XYZxyz(2.5725, 1.6849, 10.3128)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B5C #5C5312
analogous
#12405C #121B5C #2E125C
triadic
#121B5C #5C121B #1B5C12
tetradic
#121B5C #5C1240 #5C5312 #125C2E
square
#121B5C #5C1240 #5C5312 #125C2E
split-complementary
#121B5C #5C2E12 #405C12
monochromatic
#05081A #080C29 #121B5C #1C2A8F #2639C2

Accessibility & contrast

On white

15.71
#121B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121B5C
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B5C#FFFFFF#000000##FFFFFF
##121B5C1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121b5c;
/* rgb */ color: rgb(18, 27, 92);
/* oklch */ color: oklch(26.5% 0.115 270.1);
Tailwind
colors: {
  custom: {
    50: '#5e578b',
    500: '#121b5c',
    950: '#000000',
  },
}
SCSS
$custom: #121b5c;
$custom-light: #5e578b;
$custom-dark: #000000;
JSON
{
  "hex": "#121b5c",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 232.703,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26515,
    "c": 0.11539,
    "h": 270.1
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#121B5C
secondary
#948935
accent
#D53EEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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