#121B3C#121B3C

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

Color values

HEX#121B3C
RGBrgb(18, 27, 60)
HSLhsl(227, 54%, 15%)
HSVhsv(227, 70%, 24%)
CMYKcmyk(70%, 55%, 0%, 76.5%)
CIE-LABlab(10.84, 8.51, -22.55)
CIE-LCHlch(10.84, 24.10, 290.68°)
OKLaboklab(23.45% -0.0006 -0.0644)
OKLCHoklch(23.45% 0.064 269.4)
XYZxyz(1.4567, 1.2386, 4.4364)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B3C #3C3312
analogous
#12303C #121B3C #1E123C
triadic
#121B3C #3C121B #1B3C12
tetradic
#121B3C #3C1230 #3C3312 #123C1E
square
#121B3C #3C1230 #3C3312 #123C1E
split-complementary
#121B3C #3C1E12 #303C12
monochromatic
#070B18 #070B18 #121B3C #20306B #2E459A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##121B3C#FFFFFF#000000##FFFFFF
##121B3C1.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)
#0B1F3D
Deuteranopia (green-blind)
#041B3B
Tritanopia (blue-blind)
#002228
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121b3c;
/* rgb */ color: rgb(18, 27, 60);
/* oklch */ color: oklch(23.4% 0.064 269.4);
Tailwind
colors: {
  custom: {
    50: '#555672',
    500: '#121b3c',
    950: '#000000',
  },
}
SCSS
$custom: #121b3c;
$custom-light: #555672;
$custom-dark: #000000;
JSON
{
  "hex": "#121b3c",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 60
  },
  "hsl": {
    "h": 227.143,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23449,
    "c": 0.06444,
    "h": 269.4
  },
  "luminance": 0.01239
}

Semantic roles & 50–950 ramp

primary
#121B3C
secondary
#756735
accent
#BE4BDD
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030308
muted
#78787B

Preview Lab

Preview with #121B3C

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

Preview Lab → · Contrast checker → · Palette generator →

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