#1B138E#1B138E

#1B138E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.186 H 271.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#1B138E
RGBrgb(27, 19, 142)
HSLhsl(244, 76%, 32%)
HSVhsv(244, 87%, 56%)
CMYKcmyk(81%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.59, 45.07, -64.13)
CIE-LCHlch(18.59, 78.39, 305.10°)
OKLaboklab(31.82% 0.0043 -0.1855)
OKLCHoklch(31.82% 0.186 271.3)
XYZxyz(5.5657, 2.6511, 25.8043)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B138E #868E13
analogous
#13498E #1B138E #59138E
triadic
#1B138E #8E1B13 #138E1B
tetradic
#1B138E #8E1349 #868E13 #138E59
square
#1B138E #8E1349 #868E13 #138E59
split-complementary
#1B138E #8E5913 #498E13
monochromatic
#060522 #110C58 #1B138E #251AC4 #4237E4

Accessibility & contrast

On white

13.72
#1B138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B138E
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B138E#FFFFFF#000000##FFFFFF
##1B138E1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b138e;
/* rgb */ color: rgb(27, 19, 142);
/* oklch */ color: oklch(31.8% 0.186 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f56b0',
    500: '#1b138e',
    950: '#000000',
  },
}
SCSS
$custom: #1b138e;
$custom-light: #6f56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b138e",
  "rgb": {
    "r": 27,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 243.902,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31821,
    "c": 0.18558,
    "h": 271.3
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#1B138E
secondary
#B9C23B
accent
#F335E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B138E

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

Preview Lab → · Contrast checker → · Palette generator →

#1B138E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva