#12145A#12145A

#12145A is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.0% C 0.121 H 272.2°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#12145A
RGBrgb(18, 20, 90)
HSLhsl(238, 67%, 21%)
HSVhsv(238, 80%, 35%)
CMYKcmyk(80%, 77.8%, 0%, 64.7%)
CIE-LABlab(11.74, 26.00, -41.84)
CIE-LCHlch(11.74, 49.26, 301.85°)
OKLaboklab(25% 0.0047 -0.1211)
OKLCHoklch(25% 0.121 272.2)
XYZxyz(2.3445, 1.3669, 9.8111)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12145A #5A5812
analogous
#12385A #12145A #34125A
triadic
#12145A #5A1214 #145A12
tetradic
#12145A #5A1238 #5A5812 #125A34
square
#12145A #5A1238 #5A5812 #125A34
split-complementary
#12145A #5A3412 #385A12
monochromatic
#05061A #080927 #12145A #1C1F8D #262BC0

Accessibility & contrast

On white

16.49
#12145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12145A
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12145A#FFFFFF#000000##FFFFFF
##12145A1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12145a;
/* rgb */ color: rgb(18, 20, 90);
/* oklch */ color: oklch(25.0% 0.121 272.2);
Tailwind
colors: {
  custom: {
    50: '#5e528a',
    500: '#12145a',
    950: '#000000',
  },
}
SCSS
$custom: #12145a;
$custom-light: #5e528a;
$custom-dark: #000000;
JSON
{
  "hex": "#12145a",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 238.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25001,
    "c": 0.12118,
    "h": 272.2
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12145A

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

Preview Lab → · Contrast checker → · Palette generator →

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