#121855#121855

#121855 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.2% C 0.109 H 271.5°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#121855
RGBrgb(18, 24, 85)
HSLhsl(235, 65%, 20%)
HSVhsv(235, 79%, 33%)
CMYKcmyk(78.8%, 71.8%, 0%, 66.7%)
CIE-LABlab(12.21, 21.25, -37.69)
CIE-LCHlch(12.21, 43.27, 299.41°)
OKLaboklab(25.17% 0.0028 -0.109)
OKLCHoklch(25.17% 0.109 271.5)
XYZxyz(2.2152, 1.4375, 8.7533)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121855 #554F12
analogous
#123955 #121855 #2D1255
triadic
#121855 #551218 #185512
tetradic
#121855 #551239 #554F12 #12552D
square
#121855 #551239 #554F12 #12552D
split-complementary
#121855 #552D12 #395512
monochromatic
#050719 #070A22 #121855 #1D2688 #2735BA

Accessibility & contrast

On white

16.31
#121855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121855
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121855#FFFFFF#000000##FFFFFF
##1218551.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#001D54
Tritanopia (blue-blind)
#002834
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121855;
/* rgb */ color: rgb(18, 24, 85);
/* oklch */ color: oklch(25.2% 0.109 271.5);
Tailwind
colors: {
  custom: {
    50: '#5c5586',
    500: '#121855',
    950: '#000000',
  },
}
SCSS
$custom: #121855;
$custom-light: #5c5586;
$custom-dark: #000000;
JSON
{
  "hex": "#121855",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 234.627,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25175,
    "c": 0.109,
    "h": 271.5
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#121855
secondary
#8E8635
accent
#D940E8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #121855

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

Preview Lab → · Contrast checker → · Palette generator →

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