#121D5B#121D5B

#121D5B is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.111 H 269.4°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#121D5B
RGBrgb(18, 29, 91)
HSLhsl(231, 67%, 21%)
HSVhsv(231, 80%, 36%)
CMYKcmyk(80.2%, 68.1%, 0%, 64.3%)
CIE-LABlab(14.19, 20.08, -38.49)
CIE-LCHlch(14.19, 43.41, 297.55°)
OKLaboklab(26.81% -0.0012 -0.1113)
OKLCHoklch(26.81% 0.111 269.4)
XYZxyz(2.5765, 1.7624, 10.0999)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D5B #5B5012
analogous
#12425B #121D5B #2C125B
triadic
#121D5B #5B121D #1D5B12
tetradic
#121D5B #5B1242 #5B5012 #125B2C
square
#121D5B #5B1242 #5B5012 #125B2C
split-complementary
#121D5B #5B2C12 #425B12
monochromatic
#05081A #080D28 #121D5B #1C2D8E #263EC1

Accessibility & contrast

On white

15.53
#121D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121D5B
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D5B#FFFFFF#000000##FFFFFF
##121D5B1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121d5b;
/* rgb */ color: rgb(18, 29, 91);
/* oklch */ color: oklch(26.8% 0.111 269.4);
Tailwind
colors: {
  custom: {
    50: '#5d588a',
    500: '#121d5b',
    950: '#000000',
  },
}
SCSS
$custom: #121d5b;
$custom-light: #5d588a;
$custom-dark: #000000;
JSON
{
  "hex": "#121d5b",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 91
  },
  "hsl": {
    "h": 230.959,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26814,
    "c": 0.11127,
    "h": 269.4
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#121D5B
secondary
#938535
accent
#D03EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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