#121562#121562

#121562 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.1% C 0.131 H 271.2°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#121562
RGBrgb(18, 21, 98)
HSLhsl(238, 69%, 23%)
HSVhsv(238, 82%, 38%)
CMYKcmyk(81.6%, 78.6%, 0%, 61.6%)
CIE-LABlab(12.90, 28.39, -45.28)
CIE-LCHlch(12.90, 53.44, 302.09°)
OKLaboklab(26.11% 0.0028 -0.1311)
OKLCHoklch(26.11% 0.131 271.2)
XYZxyz(2.7215, 1.5465, 11.7080)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121562 #625F12
analogous
#123D62 #121562 #371262
triadic
#121562 #621215 #156212
tetradic
#121562 #62123D #625F12 #126237
square
#121562 #62123D #625F12 #126237
split-complementary
#121562 #623712 #3D6212
monochromatic
#05061A #090A2E #121562 #1B2096 #252BC9

Accessibility & contrast

On white

16.04
#121562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#121562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121562
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121562#FFFFFF#000000##FFFFFF
##1215621.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#001D61
Tritanopia (blue-blind)
#002B3A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121562;
/* rgb */ color: rgb(18, 21, 98);
/* oklch */ color: oklch(26.1% 0.131 271.2);
Tailwind
colors: {
  custom: {
    50: '#605390',
    500: '#121562',
    950: '#000000',
  },
}
SCSS
$custom: #121562;
$custom-light: #605390;
$custom-dark: #000000;
JSON
{
  "hex": "#121562",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 237.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2611,
    "c": 0.13112,
    "h": 271.2
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#121562
secondary
#9A9636
accent
#E53CEC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #121562

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

Preview Lab → · Contrast checker → · Palette generator →

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