#12125A#12125A

#12125A is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.7% C 0.123 H 272.7°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#12125A
RGBrgb(18, 18, 90)
HSLhsl(240, 67%, 21%)
HSVhsv(240, 80%, 35%)
CMYKcmyk(80%, 80%, 0%, 64.7%)
CIE-LABlab(11.27, 27.30, -42.61)
CIE-LCHlch(11.27, 50.61, 302.65°)
OKLaboklab(24.67% 0.0058 -0.1233)
OKLCHoklch(24.67% 0.123 272.7)
XYZxyz(2.3106, 1.2992, 9.7999)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12125A #5A5A12
analogous
#12365A #12125A #36125A
triadic
#12125A #5A1212 #125A12
tetradic
#12125A #5A1236 #5A5A12 #125A36
square
#12125A #5A1236 #5A5A12 #125A36
split-complementary
#12125A #5A3612 #365A12
monochromatic
#05051A #080827 #12125A #1C1C8D #2626C0

Accessibility & contrast

On white

16.67
#12125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#12125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12125A
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12125A#FFFFFF#000000##FFFFFF
##12125A1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215C
Deuteranopia (green-blind)
#001A59
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12125a;
/* rgb */ color: rgb(18, 18, 90);
/* oklch */ color: oklch(24.7% 0.123 272.7);
Tailwind
colors: {
  custom: {
    50: '#5e518a',
    500: '#12125a',
    950: '#000000',
  },
}
SCSS
$custom: #12125a;
$custom-light: #5e518a;
$custom-dark: #000000;
JSON
{
  "hex": "#12125a",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 240,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2467,
    "c": 0.12346,
    "h": 272.7
  },
  "luminance": 0.01299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12125A

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

Preview Lab → · Contrast checker → · Palette generator →

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