#12125C#12125C

#12125C is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.9% C 0.126 H 272.4°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#12125C
RGBrgb(18, 18, 92)
HSLhsl(240, 67%, 22%)
HSVhsv(240, 80%, 36%)
CMYKcmyk(80.4%, 80.4%, 0%, 63.9%)
CIE-LABlab(11.51, 28.05, -43.56)
CIE-LCHlch(11.51, 51.81, 302.78°)
OKLaboklab(24.91% 0.0054 -0.1261)
OKLCHoklch(24.91% 0.126 272.4)
XYZxyz(2.3969, 1.3337, 10.2542)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12125C #5C5C12
analogous
#12375C #12125C #37125C
triadic
#12125C #5C1212 #125C12
tetradic
#12125C #5C1237 #5C5C12 #125C37
square
#12125C #5C1237 #5C5C12 #125C37
split-complementary
#12125C #5C3712 #375C12
monochromatic
#05051A #080829 #12125C #1C1C8F #2626C2

Accessibility & contrast

On white

16.58
#12125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#12125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12125C
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12125C#FFFFFF#000000##FFFFFF
##12125C1.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)
#00225E
Deuteranopia (green-blind)
#001B5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12125c;
/* rgb */ color: rgb(18, 18, 92);
/* oklch */ color: oklch(24.9% 0.126 272.4);
Tailwind
colors: {
  custom: {
    50: '#5f518b',
    500: '#12125c',
    950: '#000000',
  },
}
SCSS
$custom: #12125c;
$custom-light: #5f518b;
$custom-dark: #000000;
JSON
{
  "hex": "#12125c",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 240,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.24911,
    "c": 0.1262,
    "h": 272.4
  },
  "luminance": 0.01334
}

Semantic roles & 50–950 ramp

primary
#12125C
secondary
#949435
accent
#EA3EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12125C

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

Preview Lab → · Contrast checker → · Palette generator →

#12125C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva