#121A40#121A40

#121A40 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.073 H 270.9°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#121A40
RGBrgb(18, 26, 64)
HSLhsl(230, 56%, 16%)
HSVhsv(230, 72%, 25%)
CMYKcmyk(71.9%, 59.4%, 0%, 74.9%)
CIE-LABlab(10.83, 10.98, -25.39)
CIE-LCHlch(10.83, 27.67, 293.39°)
OKLaboklab(23.54% 0.0011 -0.0728)
OKLCHoklch(23.54% 0.073 270.9)
XYZxyz(1.5440, 1.2374, 5.0070)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A40 #403812
analogous
#123140 #121A40 #211240
triadic
#121A40 #40121A #1A4012
tetradic
#121A40 #401231 #403812 #124021
square
#121A40 #401231 #403812 #124021
split-complementary
#121A40 #402112 #314012
monochromatic
#070A18 #070A18 #121A40 #1F2D70 #2D41A0

Accessibility & contrast

On white

16.83
#121A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121A40
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A40#FFFFFF#000000##FFFFFF
##121A401.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121a40;
/* rgb */ color: rgb(18, 26, 64);
/* oklch */ color: oklch(23.5% 0.073 270.9);
Tailwind
colors: {
  custom: {
    50: '#565675',
    500: '#121a40',
    950: '#000000',
  },
}
SCSS
$custom: #121a40;
$custom-light: #565675;
$custom-dark: #000000;
JSON
{
  "hex": "#121a40",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 229.565,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23544,
    "c": 0.07284,
    "h": 270.9
  },
  "luminance": 0.01238
}

Semantic roles & 50–950 ramp

primary
#121A40
secondary
#796D35
accent
#C548DF
background
#F5F5F7
surface
#E9E8ED
border
#C5C4C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121A40

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

Preview Lab → · Contrast checker → · Palette generator →

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