#121858#121858

#121858 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.113 H 271.3°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#121858
RGBrgb(18, 24, 88)
HSLhsl(235, 66%, 21%)
HSVhsv(235, 80%, 35%)
CMYKcmyk(79.5%, 72.7%, 0%, 65.5%)
CIE-LABlab(12.52, 22.46, -39.20)
CIE-LCHlch(12.52, 45.18, 299.81°)
OKLaboklab(25.5% 0.0025 -0.1134)
OKLCHoklch(25.5% 0.113 271.3)
XYZxyz(2.3369, 1.4862, 9.3943)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121858 #585212
analogous
#123B58 #121858 #2F1258
triadic
#121858 #581218 #185812
tetradic
#121858 #58123B #585212 #12582F
square
#121858 #58123B #585212 #12582F
split-complementary
#121858 #582F12 #3B5812
monochromatic
#050719 #080A25 #121858 #1C268B #2734BE

Accessibility & contrast

On white

16.19
#121858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121858
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121858#FFFFFF#000000##FFFFFF
##1218581.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#001D57
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121858;
/* rgb */ color: rgb(18, 24, 88);
/* oklch */ color: oklch(25.5% 0.113 271.3);
Tailwind
colors: {
  custom: {
    50: '#5d5588',
    500: '#121858',
    950: '#000000',
  },
}
SCSS
$custom: #121858;
$custom-light: #5d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#121858",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 234.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.255,
    "c": 0.11342,
    "h": 271.3
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#121858
secondary
#918935
accent
#DA3FE9
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121858

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

Preview Lab → · Contrast checker → · Palette generator →

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