#12128F#12128F

#12128F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.4% C 0.190 H 268.3°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#12128F
RGBrgb(18, 18, 143)
HSLhsl(240, 78%, 32%)
HSVhsv(240, 87%, 56%)
CMYKcmyk(87.4%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.12, 45.43, -65.56)
CIE-LCHlch(18.12, 79.76, 304.72°)
OKLaboklab(31.41% -0.0057 -0.1897)
OKLCHoklch(31.41% 0.19 268.3)
XYZxyz(5.4220, 2.5437, 26.1865)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12128F #8F8F12
analogous
#12518F #12128F #51128F
triadic
#12128F #8F1212 #128F12
tetradic
#12128F #8F1251 #8F8F12 #128F51
square
#12128F #8F1251 #8F8F12 #128F51
split-complementary
#12128F #8F5112 #518F12
monochromatic
#040422 #0B0B59 #12128F #1919C5 #3636E6

Accessibility & contrast

On white

13.92
#12128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#12128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12128F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12128F#FFFFFF#000000##FFFFFF
##12128F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00258D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12128f;
/* rgb */ color: rgb(18, 18, 143);
/* oklch */ color: oklch(31.4% 0.190 268.3);
Tailwind
colors: {
  custom: {
    50: '#6d55b1',
    500: '#12128f',
    950: '#000000',
  },
}
SCSS
$custom: #12128f;
$custom-light: #6d55b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12128f",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31407,
    "c": 0.18984,
    "h": 268.3
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#12128F
secondary
#C3C33A
accent
#F434F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12128F

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

Preview Lab → · Contrast checker → · Palette generator →

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