#121C5B#121C5B

#121C5B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.113 H 269.8°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#121C5B
RGBrgb(18, 28, 91)
HSLhsl(232, 67%, 21%)
HSVhsv(232, 80%, 36%)
CMYKcmyk(80.2%, 69.2%, 0%, 64.3%)
CIE-LABlab(13.91, 20.81, -38.94)
CIE-LCHlch(13.91, 44.15, 298.12°)
OKLaboklab(26.61% -0.0005 -0.1126)
OKLCHoklch(26.61% 0.113 269.8)
XYZxyz(2.5524, 1.7142, 10.0919)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C5B #5B5112
analogous
#12415B #121C5B #2D125B
triadic
#121C5B #5B121C #1C5B12
tetradic
#121C5B #5B1241 #5B5112 #125B2D
square
#121C5B #5B1241 #5B5112 #125B2D
split-complementary
#121C5B #5B2D12 #415B12
monochromatic
#05081A #080C28 #121C5B #1C2C8E #263BC1

Accessibility & contrast

On white

15.64
#121C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121C5B
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C5B#FFFFFF#000000##FFFFFF
##121C5B1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121c5b;
/* rgb */ color: rgb(18, 28, 91);
/* oklch */ color: oklch(26.6% 0.113 269.8);
Tailwind
colors: {
  custom: {
    50: '#5d588a',
    500: '#121c5b',
    950: '#000000',
  },
}
SCSS
$custom: #121c5b;
$custom-light: #5d588a;
$custom-dark: #000000;
JSON
{
  "hex": "#121c5b",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 91
  },
  "hsl": {
    "h": 231.781,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2661,
    "c": 0.1126,
    "h": 269.8
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#121C5B
secondary
#938735
accent
#D23EEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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