#12165A#12165A

#12165A is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.4% C 0.119 H 271.7°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#12165A
RGBrgb(18, 22, 90)
HSLhsl(237, 67%, 21%)
HSVhsv(237, 80%, 35%)
CMYKcmyk(80%, 75.6%, 0%, 64.7%)
CIE-LABlab(12.22, 24.65, -41.04)
CIE-LCHlch(12.22, 47.87, 300.99°)
OKLaboklab(25.35% 0.0036 -0.1187)
OKLCHoklch(25.35% 0.119 271.7)
XYZxyz(2.3812, 1.4404, 9.8234)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12165A #5A5612
analogous
#123A5A #12165A #32125A
triadic
#12165A #5A1216 #165A12
tetradic
#12165A #5A123A #5A5612 #125A32
square
#12165A #5A123A #5A5612 #125A32
split-complementary
#12165A #5A3212 #3A5A12
monochromatic
#05061A #080A27 #12165A #1C228D #262FC0

Accessibility & contrast

On white

16.30
#12165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#12165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12165A
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12165A#FFFFFF#000000##FFFFFF
##12165A1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001C59
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12165a;
/* rgb */ color: rgb(18, 22, 90);
/* oklch */ color: oklch(25.4% 0.119 271.7);
Tailwind
colors: {
  custom: {
    50: '#5e5389',
    500: '#12165a',
    950: '#000000',
  },
}
SCSS
$custom: #12165a;
$custom-light: #5e5389;
$custom-dark: #000000;
JSON
{
  "hex": "#12165a",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 236.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25352,
    "c": 0.1188,
    "h": 271.7
  },
  "luminance": 0.01441
}

Semantic roles & 50–950 ramp

primary
#12165A
secondary
#938D35
accent
#E03EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12165A

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

Preview Lab → · Contrast checker → · Palette generator →

#12165A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva