#12145B#12145B

#12145B is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.1% C 0.123 H 272.1°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#12145B
RGBrgb(18, 20, 91)
HSLhsl(238, 67%, 21%)
HSVhsv(238, 80%, 36%)
CMYKcmyk(80.2%, 78%, 0%, 64.3%)
CIE-LABlab(11.85, 26.38, -42.33)
CIE-LCHlch(11.85, 49.88, 301.94°)
OKLaboklab(25.12% 0.0045 -0.1225)
OKLCHoklch(25.12% 0.123 272.1)
XYZxyz(2.3873, 1.3840, 10.0368)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12145B #5B5912
analogous
#12395B #12145B #35125B
triadic
#12145B #5B1214 #145B12
tetradic
#12145B #5B1239 #5B5912 #125B35
square
#12145B #5B1239 #5B5912 #125B35
split-complementary
#12145B #5B3512 #395B12
monochromatic
#05061A #080928 #12145B #1C1F8E #262AC1

Accessibility & contrast

On white

16.45
#12145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#12145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12145B
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12145B#FFFFFF#000000##FFFFFF
##12145B1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001C5A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12145b;
/* rgb */ color: rgb(18, 20, 91);
/* oklch */ color: oklch(25.1% 0.123 272.1);
Tailwind
colors: {
  custom: {
    50: '#5e528a',
    500: '#12145b',
    950: '#000000',
  },
}
SCSS
$custom: #12145b;
$custom-light: #5e528a;
$custom-dark: #000000;
JSON
{
  "hex": "#12145b",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 238.356,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25118,
    "c": 0.12258,
    "h": 272.1
  },
  "luminance": 0.01384
}

Semantic roles & 50–950 ramp

primary
#12145B
secondary
#939135
accent
#E53EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12145B

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

Preview Lab → · Contrast checker → · Palette generator →

#12145B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva