#12168F#12168F

#12168F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.187 H 268.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#12168F
RGBrgb(18, 22, 143)
HSLhsl(238, 78%, 32%)
HSVhsv(238, 87%, 56%)
CMYKcmyk(87.4%, 84.6%, 0%, 43.9%)
CIE-LABlab(18.73, 43.59, -64.53)
CIE-LCHlch(18.73, 77.87, 304.04°)
OKLaboklab(31.84% -0.0062 -0.1869)
OKLCHoklch(31.84% 0.187 268.1)
XYZxyz(5.4926, 2.6849, 26.2100)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12168F #8F8B12
analogous
#12558F #12168F #4D128F
triadic
#12168F #8F1216 #168F12
tetradic
#12168F #8F1255 #8F8B12 #128F4D
square
#12168F #8F1255 #8F8B12 #128F4D
split-complementary
#12168F #8F4D12 #558F12
monochromatic
#040522 #0B0E59 #12168F #191EC5 #363BE6

Accessibility & contrast

On white

13.66
#12168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#12168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12168F
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12168F#FFFFFF#000000##FFFFFF
##12168F1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12168f;
/* rgb */ color: rgb(18, 22, 143);
/* oklch */ color: oklch(31.8% 0.187 268.1);
Tailwind
colors: {
  custom: {
    50: '#6d57b1',
    500: '#12168f',
    950: '#000000',
  },
}
SCSS
$custom: #12168f;
$custom-light: #6d57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12168f",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 238.08,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31835,
    "c": 0.18696,
    "h": 268.1
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#12168F
secondary
#C3BF3A
accent
#EE34F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12168F

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

Preview Lab → · Contrast checker → · Palette generator →

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