#121A5B#121A5B

#121A5B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.115 H 270.4°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#121A5B
RGBrgb(18, 26, 91)
HSLhsl(233, 67%, 21%)
HSVhsv(233, 80%, 36%)
CMYKcmyk(80.2%, 71.4%, 0%, 64.3%)
CIE-LABlab(13.37, 22.25, -39.83)
CIE-LCHlch(13.37, 45.62, 299.18°)
OKLaboklab(26.21% 0.0009 -0.1152)
OKLCHoklch(26.21% 0.115 270.4)
XYZxyz(2.5065, 1.6225, 10.0766)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A5B #5B5312
analogous
#123F5B #121A5B #2F125B
triadic
#121A5B #5B121A #1A5B12
tetradic
#121A5B #5B123F #5B5312 #125B2F
square
#121A5B #5B123F #5B5312 #125B2F
split-complementary
#121A5B #5B2F12 #3F5B12
monochromatic
#05071A #080B28 #121A5B #1C298E #2637C1

Accessibility & contrast

On white

15.85
#121A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#121A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121A5B
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A5B#FFFFFF#000000##FFFFFF
##121A5B1.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121a5b;
/* rgb */ color: rgb(18, 26, 91);
/* oklch */ color: oklch(26.2% 0.115 270.4);
Tailwind
colors: {
  custom: {
    50: '#5d568a',
    500: '#121a5b',
    950: '#000000',
  },
}
SCSS
$custom: #121a5b;
$custom-light: #5d568a;
$custom-dark: #000000;
JSON
{
  "hex": "#121a5b",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 233.425,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26212,
    "c": 0.11522,
    "h": 270.4
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#121A5B
secondary
#938935
accent
#D73EEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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