#121F72#121F72

#121F72 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.142 H 268.3°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#121F72
RGBrgb(18, 31, 114)
HSLhsl(232, 73%, 26%)
HSVhsv(232, 84%, 45%)
CMYKcmyk(84.2%, 72.8%, 0%, 55.3%)
CIE-LABlab(17.10, 27.94, -48.84)
CIE-LCHlch(17.10, 56.26, 299.77°)
OKLaboklab(29.66% -0.0041 -0.1415)
OKLCHoklch(29.66% 0.142 268.3)
XYZxyz(3.7757, 2.3230, 16.1657)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F72 #726512
analogous
#124F72 #121F72 #351272
triadic
#121F72 #72121F #1F7212
tetradic
#121F72 #72124F #726512 #127235
square
#121F72 #72124F #726512 #127235
split-complementary
#121F72 #723512 #4F7212
monochromatic
#04071A #0A113D #121F72 #1A2DA7 #233CDC

Accessibility & contrast

On white

14.34
#121F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#121F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F72
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F72#FFFFFF#000000##FFFFFF
##121F721.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #121f72;
/* rgb */ color: rgb(18, 31, 114);
/* oklch */ color: oklch(29.7% 0.142 268.3);
Tailwind
colors: {
  custom: {
    50: '#645b9b',
    500: '#121f72',
    950: '#000000',
  },
}
SCSS
$custom: #121f72;
$custom-light: #645b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#121f72",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 231.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29663,
    "c": 0.14154,
    "h": 268.3
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#121F72
secondary
#A99937
accent
#D738EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #121F72

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

Preview Lab → · Contrast checker → · Palette generator →

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