#121F40#121F40

#121F40 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.8% C 0.065 H 265.7°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#121F40
RGBrgb(18, 31, 64)
HSLhsl(223, 56%, 16%)
HSVhsv(223, 72%, 25%)
CMYKcmyk(71.9%, 51.6%, 0%, 74.9%)
CIE-LABlab(12.47, 7.12, -22.76)
CIE-LCHlch(12.47, 23.84, 287.38°)
OKLaboklab(24.79% -0.0049 -0.065)
OKLCHoklch(24.79% 0.065 265.7)
XYZxyz(1.6645, 1.4786, 5.0472)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F40 #403312
analogous
#123640 #121F40 #1C1240
triadic
#121F40 #40121F #1F4012
tetradic
#121F40 #401236 #403312 #12401C
square
#121F40 #401236 #403312 #12401C
split-complementary
#121F40 #401C12 #364012
monochromatic
#070C18 #070C18 #121F40 #1F3670 #2D4DA0

Accessibility & contrast

On white

16.21
#121F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F40
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F40#FFFFFF#000000##FFFFFF
##121F401.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2341
Deuteranopia (green-blind)
#081E3F
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121f40;
/* rgb */ color: rgb(18, 31, 64);
/* oklch */ color: oklch(24.8% 0.065 265.7);
Tailwind
colors: {
  custom: {
    50: '#565a75',
    500: '#121f40',
    950: '#000000',
  },
}
SCSS
$custom: #121f40;
$custom-light: #565a75;
$custom-dark: #000000;
JSON
{
  "hex": "#121f40",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 223.043,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24792,
    "c": 0.06518,
    "h": 265.7
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#121F40
secondary
#796635
accent
#B548DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121F40

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

Preview Lab → · Contrast checker → · Palette generator →

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