#12125D#12125D

#12125D is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.0% C 0.128 H 272.3°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#12125D
RGBrgb(18, 18, 93)
HSLhsl(240, 68%, 22%)
HSVhsv(240, 81%, 36%)
CMYKcmyk(80.6%, 80.6%, 0%, 63.5%)
CIE-LABlab(11.63, 28.42, -44.04)
CIE-LCHlch(11.63, 52.41, 302.84°)
OKLaboklab(25.03% 0.0052 -0.1275)
OKLCHoklch(25.03% 0.128 272.3)
XYZxyz(2.4409, 1.3513, 10.4860)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12125D #5D5D12
analogous
#12385D #12125D #38125D
triadic
#12125D #5D1212 #125D12
tetradic
#12125D #5D1238 #5D5D12 #125D38
square
#12125D #5D1238 #5D5D12 #125D38
split-complementary
#12125D #5D3812 #385D12
monochromatic
#05051A #08082A #12125D #1C1C90 #2626C4

Accessibility & contrast

On white

16.53
#12125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12125D
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12125D#FFFFFF#000000##FFFFFF
##12125D1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225F
Deuteranopia (green-blind)
#001B5C
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12125d;
/* rgb */ color: rgb(18, 18, 93);
/* oklch */ color: oklch(25.0% 0.128 272.3);
Tailwind
colors: {
  custom: {
    50: '#5f518c',
    500: '#12125d',
    950: '#000000',
  },
}
SCSS
$custom: #12125d;
$custom-light: #5f518c;
$custom-dark: #000000;
JSON
{
  "hex": "#12125d",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 240,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25031,
    "c": 0.12756,
    "h": 272.3
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#12125D
secondary
#959535
accent
#EA3DEA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12125D

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

Preview Lab → · Contrast checker → · Palette generator →

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