#12125F#12125F

#12125F is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.130 H 272.1°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#12125F
RGBrgb(18, 18, 95)
HSLhsl(240, 68%, 22%)
HSVhsv(240, 81%, 37%)
CMYKcmyk(81.1%, 81.1%, 0%, 62.7%)
CIE-LABlab(11.87, 29.16, -44.98)
CIE-LCHlch(11.87, 53.60, 302.96°)
OKLaboklab(25.28% 0.0048 -0.1302)
OKLCHoklch(25.28% 0.13 272.1)
XYZxyz(2.5306, 1.3872, 10.9586)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12125F #5F5F12
analogous
#12395F #12125F #39125F
triadic
#12125F #5F1212 #125F12
tetradic
#12125F #5F1239 #5F5F12 #125F39
square
#12125F #5F1239 #5F5F12 #125F39
split-complementary
#12125F #5F3912 #395F12
monochromatic
#05051A #08082C #12125F #1C1C92 #2525C6

Accessibility & contrast

On white

16.44
#12125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#12125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12125F
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12125F#FFFFFF#000000##FFFFFF
##12125F1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001B5E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12125f;
/* rgb */ color: rgb(18, 18, 95);
/* oklch */ color: oklch(25.3% 0.130 272.1);
Tailwind
colors: {
  custom: {
    50: '#5f518d',
    500: '#12125f',
    950: '#000000',
  },
}
SCSS
$custom: #12125f;
$custom-light: #5f518d;
$custom-dark: #000000;
JSON
{
  "hex": "#12125f",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 240,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25275,
    "c": 0.13028,
    "h": 272.1
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12125F

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

Preview Lab → · Contrast checker → · Palette generator →

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