#121540#121540

#121540 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.081 H 274.8°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#121540
RGBrgb(18, 21, 64)
HSLhsl(236, 56%, 16%)
HSVhsv(236, 72%, 25%)
CMYKcmyk(71.9%, 67.2%, 0%, 74.9%)
CIE-LABlab(9.28, 14.83, -27.91)
CIE-LCHlch(9.28, 31.60, 297.99°)
OKLaboklab(22.38% 0.0067 -0.0803)
OKLCHoklch(22.38% 0.081 274.8)
XYZxyz(1.4427, 1.0350, 4.9732)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121540 #403D12
analogous
#122C40 #121540 #261240
triadic
#121540 #401215 #154012
tetradic
#121540 #40122C #403D12 #124026
square
#121540 #40122C #403D12 #124026
split-complementary
#121540 #402612 #2C4012
monochromatic
#070818 #070818 #121540 #1F2570 #2D34A0

Accessibility & contrast

On white

17.40
#121540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121540
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121540#FFFFFF#000000##FFFFFF
##1215401.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #121540;
/* rgb */ color: rgb(18, 21, 64);
/* oklch */ color: oklch(22.4% 0.081 274.8);
Tailwind
colors: {
  custom: {
    50: '#565275',
    500: '#121540',
    950: '#000000',
  },
}
SCSS
$custom: #121540;
$custom-light: #565275;
$custom-dark: #000000;
JSON
{
  "hex": "#121540",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 236.087,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22384,
    "c": 0.08057,
    "h": 274.8
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#121540
secondary
#797535
accent
#D648DF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #121540

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

Preview Lab → · Contrast checker → · Palette generator →

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