#12145D#12145D

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

Color values

HEX#12145D
RGBrgb(18, 20, 93)
HSLhsl(238, 68%, 22%)
HSVhsv(238, 81%, 36%)
CMYKcmyk(80.6%, 78.5%, 0%, 63.5%)
CIE-LABlab(12.08, 27.14, -43.29)
CIE-LCHlch(12.08, 51.09, 302.09°)
OKLaboklab(25.35% 0.0042 -0.1253)
OKLCHoklch(25.35% 0.125 271.9)
XYZxyz(2.4747, 1.4190, 10.4973)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12145D #5D5B12
analogous
#123A5D #12145D #36125D
triadic
#12145D #5D1214 #145D12
tetradic
#12145D #5D123A #5D5B12 #125D36
square
#12145D #5D123A #5D5B12 #125D36
split-complementary
#12145D #5D3612 #3A5D12
monochromatic
#05061A #08092A #12145D #1C1F90 #262AC4

Accessibility & contrast

On white

16.36
#12145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12145D
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12145D#FFFFFF#000000##FFFFFF
##12145D1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001C5C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12145d;
/* rgb */ color: rgb(18, 20, 93);
/* oklch */ color: oklch(25.4% 0.125 271.9);
Tailwind
colors: {
  custom: {
    50: '#5f528c',
    500: '#12145d',
    950: '#000000',
  },
}
SCSS
$custom: #12145d;
$custom-light: #5f528c;
$custom-dark: #000000;
JSON
{
  "hex": "#12145d",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 238.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25354,
    "c": 0.12537,
    "h": 271.9
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#12145D
secondary
#959335
accent
#E63DEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12145D

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

Preview Lab → · Contrast checker → · Palette generator →

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