#121A5F#121A5F

#121A5F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.6% C 0.121 H 270.2°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#121A5F
RGBrgb(18, 26, 95)
HSLhsl(234, 68%, 22%)
HSVhsv(234, 81%, 37%)
CMYKcmyk(81.1%, 72.6%, 0%, 62.7%)
CIE-LABlab(13.79, 23.86, -41.82)
CIE-LCHlch(13.79, 48.15, 299.71°)
OKLaboklab(26.65% 0.0005 -0.121)
OKLCHoklch(26.65% 0.121 270.2)
XYZxyz(2.6837, 1.6933, 11.0097)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A5F #5F5712
analogous
#12415F #121A5F #30125F
triadic
#121A5F #5F121A #1A5F12
tetradic
#121A5F #5F1241 #5F5712 #125F30
square
#121A5F #5F1241 #5F5712 #125F30
split-complementary
#121A5F #5F3012 #415F12
monochromatic
#05071A #080C2C #121A5F #1C2892 #2536C6

Accessibility & contrast

On white

15.69
#121A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121A5F
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A5F#FFFFFF#000000##FFFFFF
##121A5F1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121a5f;
/* rgb */ color: rgb(18, 26, 95);
/* oklch */ color: oklch(26.6% 0.121 270.2);
Tailwind
colors: {
  custom: {
    50: '#5f568d',
    500: '#121a5f',
    950: '#000000',
  },
}
SCSS
$custom: #121a5f;
$custom-light: #5f568d;
$custom-dark: #000000;
JSON
{
  "hex": "#121a5f",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 233.766,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26647,
    "c": 0.12102,
    "h": 270.2
  },
  "luminance": 0.01694
}

Semantic roles & 50–950 ramp

primary
#121A5F
secondary
#978D36
accent
#D93DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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