#12148F#12148F

#12148F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.188 H 268.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#12148F
RGBrgb(18, 20, 143)
HSLhsl(239, 78%, 32%)
HSVhsv(239, 87%, 56%)
CMYKcmyk(87.4%, 86%, 0%, 43.9%)
CIE-LABlab(18.42, 44.53, -65.06)
CIE-LCHlch(18.42, 78.84, 304.39°)
OKLaboklab(31.61% -0.0059 -0.1884)
OKLCHoklch(31.61% 0.188 268.2)
XYZxyz(5.4558, 2.6114, 26.1978)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12148F #8F8D12
analogous
#12538F #12148F #4F128F
triadic
#12148F #8F1214 #148F12
tetradic
#12148F #8F1253 #8F8D12 #128F4F
square
#12148F #8F1253 #8F8D12 #128F4F
split-complementary
#12148F #8F4F12 #538F12
monochromatic
#040522 #0B0C59 #12148F #191CC5 #3639E6

Accessibility & contrast

On white

13.79
#12148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#12148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12148F
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12148F#FFFFFF#000000##FFFFFF
##12148F1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00268D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #12148f;
/* rgb */ color: rgb(18, 20, 143);
/* oklch */ color: oklch(31.6% 0.188 268.2);
Tailwind
colors: {
  custom: {
    50: '#6d56b1',
    500: '#12148f',
    950: '#000000',
  },
}
SCSS
$custom: #12148f;
$custom-light: #6d56b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12148f",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 239.04,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31614,
    "c": 0.18845,
    "h": 268.2
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#12148F
secondary
#C3C13A
accent
#F134F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12148F

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

Preview Lab → · Contrast checker → · Palette generator →

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