#121740#121740

#121740 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.077 H 273.4°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#121740
RGBrgb(18, 23, 64)
HSLhsl(233, 56%, 16%)
HSVhsv(233, 72%, 25%)
CMYKcmyk(71.9%, 64.1%, 0%, 74.9%)
CIE-LABlab(9.89, 13.30, -26.92)
CIE-LCHlch(9.89, 30.03, 296.30°)
OKLaboklab(22.84% 0.0045 -0.0774)
OKLCHoklch(22.84% 0.078 273.4)
XYZxyz(1.4810, 1.1114, 4.9860)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121740 #403B12
analogous
#122E40 #121740 #241240
triadic
#121740 #401217 #174012
tetradic
#121740 #40122E #403B12 #124024
square
#121740 #40122E #403B12 #124024
split-complementary
#121740 #402412 #2E4012
monochromatic
#070918 #070918 #121740 #1F2870 #2D39A0

Accessibility & contrast

On white

17.18
#121740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#121740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121740
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121740#FFFFFF#000000##FFFFFF
##1217401.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121740;
/* rgb */ color: rgb(18, 23, 64);
/* oklch */ color: oklch(22.8% 0.077 273.4);
Tailwind
colors: {
  custom: {
    50: '#565375',
    500: '#121740',
    950: '#000000',
  },
}
SCSS
$custom: #121740;
$custom-light: #565375;
$custom-dark: #000000;
JSON
{
  "hex": "#121740",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 233.478,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22836,
    "c": 0.0775,
    "h": 273.4
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#121740
secondary
#797235
accent
#CF48DF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #121740

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

Preview Lab → · Contrast checker → · Palette generator →

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