#12127F#12127F

#12127F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.171 H 269.2°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#12127F
RGBrgb(18, 18, 127)
HSLhsl(240, 75%, 28%)
HSVhsv(240, 86%, 50%)
CMYKcmyk(85.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(15.97, 40.30, -59.05)
CIE-LCHlch(15.97, 71.49, 304.31°)
OKLaboklab(29.32% -0.0023 -0.1709)
OKLCHoklch(29.32% 0.171 269.2)
XYZxyz(4.2952, 2.0930, 20.2522)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12127F #7F7F12
analogous
#12487F #12127F #48127F
triadic
#12127F #7F1212 #127F12
tetradic
#12127F #7F1248 #7F7F12 #127F48
square
#12127F #7F1248 #7F7F12 #127F48
split-complementary
#12127F #7F4812 #487F12
monochromatic
#04041B #0A0A49 #12127F #1A1AB5 #2B2BE1

Accessibility & contrast

On white

14.80
#12127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#12127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12127F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12127F#FFFFFF#000000##FFFFFF
##12127F1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12127f;
/* rgb */ color: rgb(18, 18, 127);
/* oklch */ color: oklch(29.3% 0.171 269.2);
Tailwind
colors: {
  custom: {
    50: '#6953a5',
    500: '#12127f',
    950: '#000000',
  },
}
SCSS
$custom: #12127f;
$custom-light: #6953a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12127f",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29319,
    "c": 0.17097,
    "h": 269.2
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#12127F
secondary
#B5B538
accent
#F236F2
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #12127F

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

Preview Lab → · Contrast checker → · Palette generator →

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