#121B45#121B45

#121B45 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.2% C 0.080 H 270.3°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#121B45
RGBrgb(18, 27, 69)
HSLhsl(229, 59%, 17%)
HSVhsv(229, 74%, 27%)
CMYKcmyk(73.9%, 60.9%, 0%, 72.9%)
CIE-LABlab(11.57, 12.33, -27.71)
CIE-LCHlch(11.57, 30.33, 293.98°)
OKLaboklab(24.23% 0.0004 -0.0796)
OKLCHoklch(24.23% 0.08 270.3)
XYZxyz(1.7152, 1.3420, 5.7977)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B45 #453C12
analogous
#123545 #121B45 #231245
triadic
#121B45 #45121B #1B4512
tetradic
#121B45 #451235 #453C12 #124523
square
#121B45 #451235 #453C12 #124523
split-complementary
#121B45 #452312 #354512
monochromatic
#060918 #060918 #121B45 #1F2E76 #2B41A6

Accessibility & contrast

On white

16.56
#121B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#121B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B45
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B45#FFFFFF#000000##FFFFFF
##121B451.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012146
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#00252C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121b45;
/* rgb */ color: rgb(18, 27, 69);
/* oklch */ color: oklch(24.2% 0.080 270.3);
Tailwind
colors: {
  custom: {
    50: '#575679',
    500: '#121b45',
    950: '#000000',
  },
}
SCSS
$custom: #121b45;
$custom-light: #575679;
$custom-dark: #000000;
JSON
{
  "hex": "#121b45",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 229.412,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24231,
    "c": 0.07965,
    "h": 270.3
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#121B45
secondary
#7E7135
accent
#C646E2
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #121B45

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

Preview Lab → · Contrast checker → · Palette generator →

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