#121B41#121B41

#121B41 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.9% C 0.073 H 270.0°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#121B41
RGBrgb(18, 27, 65)
HSLhsl(229, 57%, 16%)
HSVhsv(229, 72%, 25%)
CMYKcmyk(72.3%, 58.5%, 0%, 74.5%)
CIE-LABlab(11.23, 10.63, -25.45)
CIE-LCHlch(11.23, 27.58, 292.67°)
OKLaboklab(23.87% 0.0001 -0.073)
OKLCHoklch(23.87% 0.073 270)
XYZxyz(1.5952, 1.2940, 5.1657)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B41 #413812
analogous
#123341 #121B41 #211241
triadic
#121B41 #41121B #1B4112
tetradic
#121B41 #411233 #413812 #124121
square
#121B41 #411233 #413812 #124121
split-complementary
#121B41 #412112 #334112
monochromatic
#070A18 #070A18 #121B41 #1F2F71 #2D43A1

Accessibility & contrast

On white

16.68
#121B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#121B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B41
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B41#FFFFFF#000000##FFFFFF
##121B411.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052042
Deuteranopia (green-blind)
#001C40
Tritanopia (blue-blind)
#00242B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121b41;
/* rgb */ color: rgb(18, 27, 65);
/* oklch */ color: oklch(23.9% 0.073 270.0);
Tailwind
colors: {
  custom: {
    50: '#565676',
    500: '#121b41',
    950: '#000000',
  },
}
SCSS
$custom: #121b41;
$custom-light: #565676;
$custom-dark: #000000;
JSON
{
  "hex": "#121b41",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 228.511,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23874,
    "c": 0.07298,
    "h": 270
  },
  "luminance": 0.01294
}

Semantic roles & 50–950 ramp

primary
#121B41
secondary
#7A6D35
accent
#C348E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121B41

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

Preview Lab → · Contrast checker → · Palette generator →

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