#12167E#12167E

#12167E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.166 H 269.0°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#12167E
RGBrgb(18, 22, 126)
HSLhsl(238, 75%, 28%)
HSVhsv(238, 86%, 49%)
CMYKcmyk(85.7%, 82.5%, 0%, 50.6%)
CIE-LABlab(16.54, 37.90, -57.45)
CIE-LCHlch(16.54, 68.83, 303.41°)
OKLaboklab(29.68% -0.0029 -0.1664)
OKLCHoklch(29.68% 0.166 269)
XYZxyz(4.3010, 2.2083, 19.9342)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12167E #7E7A12
analogous
#124C7E #12167E #44127E
triadic
#12167E #7E1216 #167E12
tetradic
#12167E #7E124C #7E7A12 #127E44
square
#12167E #7E124C #7E7A12 #127E44
split-complementary
#12167E #7E4412 #4C7E12
monochromatic
#04051B #0A0D48 #12167E #1A1FB4 #2A31E1

Accessibility & contrast

On white

14.57
#12167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#12167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12167E
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12167E#FFFFFF#000000##FFFFFF
##12167E1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12167e;
/* rgb */ color: rgb(18, 22, 126);
/* oklch */ color: oklch(29.7% 0.166 269.0);
Tailwind
colors: {
  custom: {
    50: '#6856a5',
    500: '#12167e',
    950: '#000000',
  },
}
SCSS
$custom: #12167e;
$custom-light: #6856a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12167e",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 237.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29683,
    "c": 0.16644,
    "h": 269
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#12167E
secondary
#B4AF38
accent
#EB36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #12167E

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

Preview Lab → · Contrast checker → · Palette generator →

#12167E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva