#121E4C#121E4C

#121E4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.087 H 268.5°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#121E4C
RGBrgb(18, 30, 76)
HSLhsl(228, 62%, 18%)
HSVhsv(228, 76%, 30%)
CMYKcmyk(76.3%, 60.5%, 0%, 70.2%)
CIE-LABlab(13.10, 13.02, -30.08)
CIE-LCHlch(13.10, 32.77, 293.40°)
OKLaboklab(25.57% -0.0022 -0.0865)
OKLCHoklch(25.57% 0.087 268.5)
XYZxyz(2.0178, 1.5787, 7.0345)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E4C #4C4012
analogous
#123B4C #121E4C #23124C
triadic
#121E4C #4C121E #1E4C12
tetradic
#121E4C #4C123B #4C4012 #124C23
square
#121E4C #4C123B #4C4012 #124C23
split-complementary
#121E4C #4C2312 #3B4C12
monochromatic
#060A19 #060A1B #121E4C #1E327D #2945AF

Accessibility & contrast

On white

15.96
#121E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#121E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E4C
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E4C#FFFFFF#000000##FFFFFF
##121E4C1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121e4c;
/* rgb */ color: rgb(18, 30, 76);
/* oklch */ color: oklch(25.6% 0.087 268.5);
Tailwind
colors: {
  custom: {
    50: '#59597e',
    500: '#121e4c',
    950: '#000000',
  },
}
SCSS
$custom: #121e4c;
$custom-light: #59597e;
$custom-dark: #000000;
JSON
{
  "hex": "#121e4c",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 76
  },
  "hsl": {
    "h": 227.586,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25574,
    "c": 0.08658,
    "h": 268.5
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#121E4C
secondary
#857435
accent
#C343E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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