#121B5A#121B5A

#121B5A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.112 H 270.1°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#121B5A
RGBrgb(18, 27, 90)
HSLhsl(233, 67%, 21%)
HSVhsv(233, 80%, 35%)
CMYKcmyk(80%, 70%, 0%, 64.7%)
CIE-LABlab(13.53, 21.12, -38.89)
CIE-LCHlch(13.53, 44.25, 298.51°)
OKLaboklab(26.3% 0.0003 -0.1124)
OKLCHoklch(26.3% 0.112 270.1)
XYZxyz(2.4862, 1.6504, 9.8584)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B5A #5A5112
analogous
#123F5A #121B5A #2D125A
triadic
#121B5A #5A121B #1B5A12
tetradic
#121B5A #5A123F #5A5112 #125A2D
square
#121B5A #5A123F #5A5112 #125A2D
split-complementary
#121B5A #5A2D12 #3F5A12
monochromatic
#05081A #080C27 #121B5A #1C2A8D #263AC0

Accessibility & contrast

On white

15.79
#121B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121B5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B5A
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B5A#FFFFFF#000000##FFFFFF
##121B5A1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121b5a;
/* rgb */ color: rgb(18, 27, 90);
/* oklch */ color: oklch(26.3% 0.112 270.1);
Tailwind
colors: {
  custom: {
    50: '#5d5789',
    500: '#121b5a',
    950: '#000000',
  },
}
SCSS
$custom: #121b5a;
$custom-light: #5d5789;
$custom-dark: #000000;
JSON
{
  "hex": "#121b5a",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 232.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26303,
    "c": 0.11245,
    "h": 270.1
  },
  "luminance": 0.01651
}

Semantic roles & 50–950 ramp

primary
#121B5A
secondary
#938735
accent
#D43EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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