#12145E#12145E

#12145E is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.5% C 0.127 H 271.8°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#12145E
RGBrgb(18, 20, 94)
HSLhsl(238, 68%, 22%)
HSVhsv(238, 81%, 37%)
CMYKcmyk(80.9%, 78.7%, 0%, 63.1%)
CIE-LABlab(12.20, 27.53, -43.76)
CIE-LCHlch(12.20, 51.70, 302.17°)
OKLaboklab(25.47% 0.004 -0.1267)
OKLCHoklch(25.47% 0.127 271.8)
XYZxyz(2.5193, 1.4368, 10.7321)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12145E #5E5C12
analogous
#123A5E #12145E #36125E
triadic
#12145E #5E1214 #145E12
tetradic
#12145E #5E123A #5E5C12 #125E36
square
#12145E #5E123A #5E5C12 #125E36
split-complementary
#12145E #5E3612 #3A5E12
monochromatic
#05051A #08092B #12145E #1C1F91 #262AC5

Accessibility & contrast

On white

16.31
#12145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#12145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12145E
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12145E#FFFFFF#000000##FFFFFF
##12145E1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001C5D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12145e;
/* rgb */ color: rgb(18, 20, 94);
/* oklch */ color: oklch(25.5% 0.127 271.8);
Tailwind
colors: {
  custom: {
    50: '#5f528d',
    500: '#12145e',
    950: '#000000',
  },
}
SCSS
$custom: #12145e;
$custom-light: #5f528d;
$custom-dark: #000000;
JSON
{
  "hex": "#12145e",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 238.421,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25472,
    "c": 0.12674,
    "h": 271.8
  },
  "luminance": 0.01437
}

Semantic roles & 50–950 ramp

primary
#12145E
secondary
#969435
accent
#E63DEB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12145E

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

Preview Lab → · Contrast checker → · Palette generator →

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