#12135A#12135A

#12135A is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.8% C 0.122 H 272.5°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#12135A
RGBrgb(18, 19, 90)
HSLhsl(239, 67%, 21%)
HSVhsv(239, 80%, 35%)
CMYKcmyk(80%, 78.9%, 0%, 64.7%)
CIE-LABlab(11.50, 26.66, -42.23)
CIE-LCHlch(11.50, 49.94, 302.26°)
OKLaboklab(24.83% 0.0053 -0.1222)
OKLCHoklch(24.83% 0.122 272.5)
XYZxyz(2.3272, 1.3323, 9.8054)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12135A #5A5912
analogous
#12375A #12135A #35125A
triadic
#12135A #5A1213 #135A12
tetradic
#12135A #5A1237 #5A5912 #125A35
square
#12135A #5A1237 #5A5912 #125A35
split-complementary
#12135A #5A3512 #375A12
monochromatic
#05051A #080827 #12135A #1C1E8D #2629C0

Accessibility & contrast

On white

16.58
#12135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#12135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12135A
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12135A#FFFFFF#000000##FFFFFF
##12135A1.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001B59
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12135a;
/* rgb */ color: rgb(18, 19, 90);
/* oklch */ color: oklch(24.8% 0.122 272.5);
Tailwind
colors: {
  custom: {
    50: '#5e518a',
    500: '#12135a',
    950: '#000000',
  },
}
SCSS
$custom: #12135a;
$custom-light: #5e518a;
$custom-dark: #000000;
JSON
{
  "hex": "#12135a",
  "rgb": {
    "r": 18,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 239.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.24833,
    "c": 0.12233,
    "h": 272.5
  },
  "luminance": 0.01333
}

Semantic roles & 50–950 ramp

primary
#12135A
secondary
#939135
accent
#E73EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12135A

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

Preview Lab → · Contrast checker → · Palette generator →

#12135A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva