#121768#121768

#121768 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.137 H 270.4°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#121768
RGBrgb(18, 23, 104)
HSLhsl(237, 70%, 24%)
HSVhsv(237, 83%, 41%)
CMYKcmyk(82.7%, 77.9%, 0%, 59.2%)
CIE-LABlab(14.06, 29.38, -47.33)
CIE-LCHlch(14.06, 55.70, 301.83°)
OKLaboklab(27.15% 0.0008 -0.1371)
OKLCHoklch(27.15% 0.137 270.4)
XYZxyz(3.0537, 1.7405, 13.2690)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121768 #686312
analogous
#124268 #121768 #381268
triadic
#121768 #681217 #176812
tetradic
#121768 #681242 #686312 #126838
square
#121768 #681242 #686312 #126838
split-complementary
#121768 #683812 #426812
monochromatic
#05061A #090B34 #121768 #1B239C #242ED0

Accessibility & contrast

On white

15.58
#121768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#121768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121768
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121768#FFFFFF#000000##FFFFFF
##1217681.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121768;
/* rgb */ color: rgb(18, 23, 104);
/* oklch */ color: oklch(27.1% 0.137 270.4);
Tailwind
colors: {
  custom: {
    50: '#625594',
    500: '#121768',
    950: '#000000',
  },
}
SCSS
$custom: #121768;
$custom-light: #625594;
$custom-dark: #000000;
JSON
{
  "hex": "#121768",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 236.512,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27146,
    "c": 0.13706,
    "h": 270.4
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#121768
secondary
#A09A36
accent
#E33BED
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #121768

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

Preview Lab → · Contrast checker → · Palette generator →

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