#121857#121857

#121857 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.112 H 271.4°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#121857
RGBrgb(18, 24, 87)
HSLhsl(235, 66%, 21%)
HSVhsv(235, 79%, 34%)
CMYKcmyk(79.3%, 72.4%, 0%, 65.9%)
CIE-LABlab(12.41, 22.06, -38.70)
CIE-LCHlch(12.41, 44.55, 299.68°)
OKLaboklab(25.39% 0.0026 -0.1119)
OKLCHoklch(25.39% 0.112 271.4)
XYZxyz(2.2958, 1.4697, 9.1777)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121857 #575112
analogous
#123A57 #121857 #2E1257
triadic
#121857 #571218 #185712
tetradic
#121857 #57123A #575112 #12572E
square
#121857 #57123A #575112 #12572E
split-complementary
#121857 #572E12 #3A5712
monochromatic
#050719 #080A24 #121857 #1C268A #2734BC

Accessibility & contrast

On white

16.23
#121857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121857
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121857#FFFFFF#000000##FFFFFF
##1218571.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#001D56
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121857;
/* rgb */ color: rgb(18, 24, 87);
/* oklch */ color: oklch(25.4% 0.112 271.4);
Tailwind
colors: {
  custom: {
    50: '#5c5587',
    500: '#121857',
    950: '#000000',
  },
}
SCSS
$custom: #121857;
$custom-light: #5c5587;
$custom-dark: #000000;
JSON
{
  "hex": "#121857",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 234.783,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25391,
    "c": 0.11195,
    "h": 271.4
  },
  "luminance": 0.0147
}

Semantic roles & 50–950 ramp

primary
#121857
secondary
#908835
accent
#DA3FE9
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #121857

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

Preview Lab → · Contrast checker → · Palette generator →

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