#121B4C#121B4C

#121B4C is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.091 H 270.4°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#121B4C
RGBrgb(18, 27, 76)
HSLhsl(231, 62%, 18%)
HSVhsv(231, 76%, 30%)
CMYKcmyk(76.3%, 64.5%, 0%, 70.2%)
CIE-LABlab(12.18, 15.29, -31.57)
CIE-LCHlch(12.18, 35.08, 295.85°)
OKLaboklab(24.89% 0.0007 -0.091)
OKLCHoklch(24.89% 0.091 270.4)
XYZxyz(1.9454, 1.4341, 7.0104)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B4C #4C4312
analogous
#12384C #121B4C #26124C
triadic
#121B4C #4C121B #1B4C12
tetradic
#121B4C #4C1238 #4C4312 #124C26
square
#121B4C #4C1238 #4C4312 #124C26
split-complementary
#121B4C #4C2612 #384C12
monochromatic
#060919 #06091B #121B4C #1E2D7D #293EAF

Accessibility & contrast

On white

16.32
#121B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121B4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B4C
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B4C#FFFFFF#000000##FFFFFF
##121B4C1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#002730
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121b4c;
/* rgb */ color: rgb(18, 27, 76);
/* oklch */ color: oklch(24.9% 0.091 270.4);
Tailwind
colors: {
  custom: {
    50: '#59577e',
    500: '#121b4c',
    950: '#000000',
  },
}
SCSS
$custom: #121b4c;
$custom-light: #59577e;
$custom-dark: #000000;
JSON
{
  "hex": "#121b4c",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 230.69,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24887,
    "c": 0.09098,
    "h": 270.4
  },
  "luminance": 0.01434
}

Semantic roles & 50–950 ramp

primary
#121B4C
secondary
#857935
accent
#CC43E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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