#121868#121868

#121868 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.3% C 0.136 H 270.2°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#121868
RGBrgb(18, 24, 104)
HSLhsl(236, 70%, 24%)
HSVhsv(236, 83%, 41%)
CMYKcmyk(82.7%, 76.9%, 0%, 59.2%)
CIE-LABlab(14.29, 28.73, -46.94)
CIE-LCHlch(14.29, 55.04, 301.46°)
OKLaboklab(27.31% 0.0004 -0.136)
OKLCHoklch(27.31% 0.136 270.2)
XYZxyz(3.0739, 1.7810, 13.2758)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121868 #686212
analogous
#124368 #121868 #371268
triadic
#121868 #681218 #186812
tetradic
#121868 #681243 #686212 #126837
square
#121868 #681243 #686212 #126837
split-complementary
#121868 #683712 #436812
monochromatic
#05061A #090C34 #121868 #1B249C #2430D0

Accessibility & contrast

On white

15.48
#121868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121868
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121868#FFFFFF#000000##FFFFFF
##1218681.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002067
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121868;
/* rgb */ color: rgb(18, 24, 104);
/* oklch */ color: oklch(27.3% 0.136 270.2);
Tailwind
colors: {
  custom: {
    50: '#615594',
    500: '#121868',
    950: '#000000',
  },
}
SCSS
$custom: #121868;
$custom-light: #615594;
$custom-dark: #000000;
JSON
{
  "hex": "#121868",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 235.814,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27311,
    "c": 0.13596,
    "h": 270.2
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#121868
secondary
#A09836
accent
#E13BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #121868

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

Preview Lab → · Contrast checker → · Palette generator →

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