#12135F#12135F

#12135F is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.4% C 0.129 H 271.9°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#12135F
RGBrgb(18, 19, 95)
HSLhsl(239, 68%, 22%)
HSVhsv(239, 81%, 37%)
CMYKcmyk(81.1%, 80%, 0%, 62.7%)
CIE-LABlab(12.09, 28.54, -44.61)
CIE-LCHlch(12.09, 52.96, 302.61°)
OKLaboklab(25.43% 0.0043 -0.1291)
OKLCHoklch(25.43% 0.129 271.9)
XYZxyz(2.5472, 1.4203, 10.9642)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12135F #5F5E12
analogous
#123A5F #12135F #38125F
triadic
#12135F #5F1213 #135F12
tetradic
#12135F #5F123A #5F5E12 #125F38
square
#12135F #5F123A #5F5E12 #125F38
split-complementary
#12135F #5F3812 #3A5F12
monochromatic
#05051A #08092C #12135F #1C1D92 #2528C6

Accessibility & contrast

On white

16.35
#12135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#12135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12135F
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12135F#FFFFFF#000000##FFFFFF
##12135F1.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12135f;
/* rgb */ color: rgb(18, 19, 95);
/* oklch */ color: oklch(25.4% 0.129 271.9);
Tailwind
colors: {
  custom: {
    50: '#5f528d',
    500: '#12135f',
    950: '#000000',
  },
}
SCSS
$custom: #12135f;
$custom-light: #5f528d;
$custom-dark: #000000;
JSON
{
  "hex": "#12135f",
  "rgb": {
    "r": 18,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 239.221,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2543,
    "c": 0.12921,
    "h": 271.9
  },
  "luminance": 0.01421
}

Semantic roles & 50–950 ramp

primary
#12135F
secondary
#979636
accent
#E93DEB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12135F

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

Preview Lab → · Contrast checker → · Palette generator →

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