#12137F#12137F

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

Color values

HEX#12137F
RGBrgb(18, 19, 127)
HSLhsl(239, 75%, 28%)
HSVhsv(239, 86%, 50%)
CMYKcmyk(85.8%, 85%, 0%, 50.2%)
CIE-LABlab(16.14, 39.81, -58.77)
CIE-LCHlch(16.14, 70.98, 304.11°)
OKLaboklab(29.44% -0.0025 -0.1702)
OKLCHoklch(29.44% 0.17 269.2)
XYZxyz(4.3118, 2.1261, 20.2577)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12137F #7F7E12
analogous
#12497F #12137F #47127F
triadic
#12137F #7F1213 #137F12
tetradic
#12137F #7F1249 #7F7E12 #127F47
square
#12137F #7F1249 #7F7E12 #127F47
split-complementary
#12137F #7F4712 #497F12
monochromatic
#04041B #0A0B49 #12137F #1A1BB5 #2B2CE1

Accessibility & contrast

On white

14.73
#12137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#12137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12137F
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12137F#FFFFFF#000000##FFFFFF
##12137F1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12137f;
/* rgb */ color: rgb(18, 19, 127);
/* oklch */ color: oklch(29.4% 0.170 269.2);
Tailwind
colors: {
  custom: {
    50: '#6954a5',
    500: '#12137f',
    950: '#000000',
  },
}
SCSS
$custom: #12137f;
$custom-light: #6954a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12137f",
  "rgb": {
    "r": 18,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 239.45,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29435,
    "c": 0.17019,
    "h": 269.2
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#12137F
secondary
#B5B438
accent
#F036F2
background
#F6F5FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #12137F

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

Preview Lab → · Contrast checker → · Palette generator →

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