#1B138C#1B138C

#1B138C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.183 H 271.5°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#1B138C
RGBrgb(27, 19, 140)
HSLhsl(244, 76%, 31%)
HSVhsv(244, 86%, 55%)
CMYKcmyk(80.7%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.33, 44.45, -63.32)
CIE-LCHlch(18.33, 77.36, 305.07°)
OKLaboklab(31.57% 0.0049 -0.1832)
OKLCHoklch(31.57% 0.183 271.5)
XYZxyz(5.4169, 2.5916, 25.0206)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B138C #848C13
analogous
#13478C #1B138C #57138C
triadic
#1B138C #8C1B13 #138C1B
tetradic
#1B138C #8C1347 #848C13 #138C57
square
#1B138C #8C1347 #848C13 #138C57
split-complementary
#1B138C #8C5713 #478C13
monochromatic
#060420 #110C56 #1B138C #251AC2 #4136E4

Accessibility & contrast

On white

13.83
#1B138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B138C
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B138C#FFFFFF#000000##FFFFFF
##1B138C1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b138c;
/* rgb */ color: rgb(27, 19, 140);
/* oklch */ color: oklch(31.6% 0.183 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f56af',
    500: '#1b138c',
    950: '#000000',
  },
}
SCSS
$custom: #1b138c;
$custom-light: #6f56af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b138c",
  "rgb": {
    "r": 27,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 243.967,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31568,
    "c": 0.18323,
    "h": 271.5
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#1B138C
secondary
#B7C03B
accent
#F335E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B138C

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

Preview Lab → · Contrast checker → · Palette generator →

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