#12145F#12145F

#12145F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.6% C 0.128 H 271.7°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#12145F
RGBrgb(18, 20, 95)
HSLhsl(238, 68%, 22%)
HSVhsv(238, 81%, 37%)
CMYKcmyk(81.1%, 78.9%, 0%, 62.7%)
CIE-LABlab(12.32, 27.90, -44.24)
CIE-LCHlch(12.32, 52.30, 302.24°)
OKLaboklab(25.59% 0.0038 -0.1281)
OKLCHoklch(25.59% 0.128 271.7)
XYZxyz(2.5645, 1.4549, 10.9699)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12145F #5F5D12
analogous
#123A5F #12145F #37125F
triadic
#12145F #5F1214 #145F12
tetradic
#12145F #5F123A #5F5D12 #125F37
square
#12145F #5F123A #5F5D12 #125F37
split-complementary
#12145F #5F3712 #3A5F12
monochromatic
#05051A #08092C #12145F #1C1F92 #252AC6

Accessibility & contrast

On white

16.27
#12145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12145F
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12145F#FFFFFF#000000##FFFFFF
##12145F1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001C5E
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12145f;
/* rgb */ color: rgb(18, 20, 95);
/* oklch */ color: oklch(25.6% 0.128 271.7);
Tailwind
colors: {
  custom: {
    50: '#5f528d',
    500: '#12145f',
    950: '#000000',
  },
}
SCSS
$custom: #12145f;
$custom-light: #5f528d;
$custom-dark: #000000;
JSON
{
  "hex": "#12145f",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 238.442,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25591,
    "c": 0.12812,
    "h": 271.7
  },
  "luminance": 0.01455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12145F

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

Preview Lab → · Contrast checker → · Palette generator →

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