#121F5A#121F5A

#121F5A is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.107 H 268.6°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#121F5A
RGBrgb(18, 31, 90)
HSLhsl(229, 67%, 21%)
HSVhsv(229, 80%, 35%)
CMYKcmyk(80%, 65.6%, 0%, 64.7%)
CIE-LABlab(14.66, 18.19, -37.04)
CIE-LCHlch(14.66, 41.27, 296.16°)
OKLaboklab(27.13% -0.0027 -0.107)
OKLCHoklch(27.13% 0.107 268.6)
XYZxyz(2.5843, 1.8465, 9.8911)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F5A #5A4D12
analogous
#12435A #121F5A #29125A
triadic
#121F5A #5A121F #1F5A12
tetradic
#121F5A #5A1243 #5A4D12 #125A29
square
#121F5A #5A1243 #5A4D12 #125A29
split-complementary
#121F5A #5A2912 #435A12
monochromatic
#05091A #080D27 #121F5A #1C318D #2642C0

Accessibility & contrast

On white

15.34
#121F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#121F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F5A
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F5A#FFFFFF#000000##FFFFFF
##121F5A1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121f5a;
/* rgb */ color: rgb(18, 31, 90);
/* oklch */ color: oklch(27.1% 0.107 268.6);
Tailwind
colors: {
  custom: {
    50: '#5d5a89',
    500: '#121f5a',
    950: '#000000',
  },
}
SCSS
$custom: #121f5a;
$custom-light: #5d5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#121f5a",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 229.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27133,
    "c": 0.10703,
    "h": 268.6
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#121F5A
secondary
#938235
accent
#CB3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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