#121C40#121C40

#121C40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.070 H 269.0°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#121C40
RGBrgb(18, 28, 64)
HSLhsl(227, 56%, 16%)
HSVhsv(227, 72%, 25%)
CMYKcmyk(71.9%, 56.2%, 0%, 74.9%)
CIE-LABlab(11.48, 9.43, -24.35)
CIE-LCHlch(11.48, 26.11, 291.18°)
OKLaboklab(24.03% -0.0013 -0.0697)
OKLCHoklch(24.03% 0.07 269)
XYZxyz(1.5898, 1.3291, 5.0223)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C40 #403612
analogous
#123340 #121C40 #1F1240
triadic
#121C40 #40121C #1C4012
tetradic
#121C40 #401233 #403612 #12401F
square
#121C40 #401233 #403612 #12401F
split-complementary
#121C40 #401F12 #334012
monochromatic
#070A18 #070A18 #121C40 #1F3170 #2D46A0

Accessibility & contrast

On white

16.59
#121C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#121C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C40
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C40#FFFFFF#000000##FFFFFF
##121C401.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121c40;
/* rgb */ color: rgb(18, 28, 64);
/* oklch */ color: oklch(24.0% 0.070 269.0);
Tailwind
colors: {
  custom: {
    50: '#565775',
    500: '#121c40',
    950: '#000000',
  },
}
SCSS
$custom: #121c40;
$custom-light: #565775;
$custom-dark: #000000;
JSON
{
  "hex": "#121c40",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 226.957,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24034,
    "c": 0.06974,
    "h": 269
  },
  "luminance": 0.01329
}

Semantic roles & 50–950 ramp

primary
#121C40
secondary
#796A35
accent
#BF48DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121C40

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

Preview Lab → · Contrast checker → · Palette generator →

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