#121B5F#121B5F

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

Color values

HEX#121B5F
RGBrgb(18, 27, 95)
HSLhsl(233, 68%, 22%)
HSVhsv(233, 81%, 37%)
CMYKcmyk(81.1%, 71.6%, 0%, 62.7%)
CIE-LABlab(14.05, 23.15, -41.39)
CIE-LCHlch(14.05, 47.42, 299.22°)
OKLaboklab(26.84% -0.0001 -0.1198)
OKLCHoklch(26.84% 0.12 270)
XYZxyz(2.7062, 1.7384, 11.0172)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B5F #5F5612
analogous
#12425F #121B5F #30125F
triadic
#121B5F #5F121B #1B5F12
tetradic
#121B5F #5F1242 #5F5612 #125F30
square
#121B5F #5F1242 #5F5612 #125F30
split-complementary
#121B5F #5F3012 #425F12
monochromatic
#05071A #080C2C #121B5F #1C2A92 #2538C6

Accessibility & contrast

On white

15.58
#121B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121B5F
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B5F#FFFFFF#000000##FFFFFF
##121B5F1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121b5f;
/* rgb */ color: rgb(18, 27, 95);
/* oklch */ color: oklch(26.8% 0.120 270.0);
Tailwind
colors: {
  custom: {
    50: '#5e578d',
    500: '#121b5f',
    950: '#000000',
  },
}
SCSS
$custom: #121b5f;
$custom-light: #5e578d;
$custom-dark: #000000;
JSON
{
  "hex": "#121b5f",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 232.987,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26838,
    "c": 0.11976,
    "h": 270
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#121B5F
secondary
#978C36
accent
#D73DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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