#12125E#12125E

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

Color values

HEX#12125E
RGBrgb(18, 18, 94)
HSLhsl(240, 68%, 22%)
HSVhsv(240, 81%, 37%)
CMYKcmyk(80.9%, 80.9%, 0%, 63.1%)
CIE-LABlab(11.75, 28.80, -44.51)
CIE-LCHlch(11.75, 53.01, 302.90°)
OKLaboklab(25.15% 0.005 -0.1288)
OKLCHoklch(25.15% 0.129 272.2)
XYZxyz(2.4855, 1.3691, 10.7208)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12125E #5E5E12
analogous
#12385E #12125E #38125E
triadic
#12125E #5E1212 #125E12
tetradic
#12125E #5E1238 #5E5E12 #125E38
square
#12125E #5E1238 #5E5E12 #125E38
split-complementary
#12125E #5E3812 #385E12
monochromatic
#05051A #08082B #12125E #1C1C91 #2626C5

Accessibility & contrast

On white

16.49
#12125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12125E
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12125E#FFFFFF#000000##FFFFFF
##12125E1.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)
#002360
Deuteranopia (green-blind)
#001B5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12125e;
/* rgb */ color: rgb(18, 18, 94);
/* oklch */ color: oklch(25.2% 0.129 272.2);
Tailwind
colors: {
  custom: {
    50: '#5f518d',
    500: '#12125e',
    950: '#000000',
  },
}
SCSS
$custom: #12125e;
$custom-light: #5f518d;
$custom-dark: #000000;
JSON
{
  "hex": "#12125e",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 240,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25153,
    "c": 0.12893,
    "h": 272.2
  },
  "luminance": 0.01369
}

Semantic roles & 50–950 ramp

primary
#12125E
secondary
#969635
accent
#EB3DEB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12125E

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

Preview Lab → · Contrast checker → · Palette generator →

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