#121E74#121E74

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

Color values

HEX#121E74
RGBrgb(18, 30, 116)
HSLhsl(233, 73%, 26%)
HSVhsv(233, 84%, 45%)
CMYKcmyk(84.5%, 74.1%, 0%, 54.5%)
CIE-LABlab(17.07, 29.38, -50.17)
CIE-LCHlch(17.07, 58.14, 300.36°)
OKLaboklab(29.71% -0.0039 -0.1454)
OKLCHoklch(29.71% 0.145 268.5)
XYZxyz(3.8650, 2.3176, 16.7633)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E74 #746812
analogous
#124F74 #121E74 #371274
triadic
#121E74 #74121E #1E7412
tetradic
#121E74 #74124F #746812 #127437
square
#121E74 #74124F #746812 #127437
split-complementary
#121E74 #743712 #4F7412
monochromatic
#04071A #0A103F #121E74 #1A2CA9 #233ADD

Accessibility & contrast

On white

14.35
#121E74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121E74
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E74#FFFFFF#000000##FFFFFF
##121E741.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121e74;
/* rgb */ color: rgb(18, 30, 116);
/* oklch */ color: oklch(29.7% 0.145 268.5);
Tailwind
colors: {
  custom: {
    50: '#645a9d',
    500: '#121e74',
    950: '#000000',
  },
}
SCSS
$custom: #121e74;
$custom-light: #645a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#121e74",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 116
  },
  "hsl": {
    "h": 232.653,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2971,
    "c": 0.14542,
    "h": 268.5
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

primary
#121E74
secondary
#AB9D37
accent
#D938F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #121E74

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

Preview Lab → · Contrast checker → · Palette generator →

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