#121640#121640

#121640 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.6% C 0.079 H 274.1°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#121640
RGBrgb(18, 22, 64)
HSLhsl(235, 56%, 16%)
HSVhsv(235, 72%, 25%)
CMYKcmyk(71.9%, 65.6%, 0%, 74.9%)
CIE-LABlab(9.58, 14.07, -27.42)
CIE-LCHlch(9.58, 30.82, 297.17°)
OKLaboklab(22.61% 0.0056 -0.0788)
OKLCHoklch(22.61% 0.079 274.1)
XYZxyz(1.4615, 1.0725, 4.9795)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121640 #403C12
analogous
#122D40 #121640 #251240
triadic
#121640 #401216 #164012
tetradic
#121640 #40122D #403C12 #124025
square
#121640 #40122D #403C12 #124025
split-complementary
#121640 #402512 #2D4012
monochromatic
#070818 #070818 #121640 #1F2670 #2D37A0

Accessibility & contrast

On white

17.29
#121640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#121640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121640
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121640#FFFFFF#000000##FFFFFF
##1216401.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #121640;
/* rgb */ color: rgb(18, 22, 64);
/* oklch */ color: oklch(22.6% 0.079 274.1);
Tailwind
colors: {
  custom: {
    50: '#565275',
    500: '#121640',
    950: '#000000',
  },
}
SCSS
$custom: #121640;
$custom-light: #565275;
$custom-dark: #000000;
JSON
{
  "hex": "#121640",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 234.783,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22608,
    "c": 0.07904,
    "h": 274.1
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#121640
secondary
#797335
accent
#D248DF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #121640

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

Preview Lab → · Contrast checker → · Palette generator →

#121640 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva