#12167F#12167F

#12167F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.168 H 268.9°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#12167F
RGBrgb(18, 22, 127)
HSLhsl(238, 75%, 28%)
HSVhsv(238, 86%, 50%)
CMYKcmyk(85.8%, 82.7%, 0%, 50.2%)
CIE-LABlab(16.67, 38.24, -57.88)
CIE-LCHlch(16.67, 69.37, 303.45°)
OKLaboklab(29.81% -0.0031 -0.1676)
OKLCHoklch(29.81% 0.168 268.9)
XYZxyz(4.3658, 2.2342, 20.2757)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12167F #7F7B12
analogous
#124C7F #12167F #44127F
triadic
#12167F #7F1216 #167F12
tetradic
#12167F #7F124C #7F7B12 #127F44
square
#12167F #7F124C #7F7B12 #127F44
split-complementary
#12167F #7F4412 #4C7F12
monochromatic
#04051B #0A0D49 #12167F #1A1FB5 #2B31E1

Accessibility & contrast

On white

14.51
#12167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#12167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12167F
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12167F#FFFFFF#000000##FFFFFF
##12167F1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12167f;
/* rgb */ color: rgb(18, 22, 127);
/* oklch */ color: oklch(29.8% 0.168 268.9);
Tailwind
colors: {
  custom: {
    50: '#6856a5',
    500: '#12167f',
    950: '#000000',
  },
}
SCSS
$custom: #12167f;
$custom-light: #6856a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12167f",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 237.798,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29808,
    "c": 0.16768,
    "h": 268.9
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

primary
#12167F
secondary
#B5B038
accent
#EB36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #12167F

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

Preview Lab → · Contrast checker → · Palette generator →

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