#1B107E#1B107E

#1B107E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.169 H 273.2°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#1B107E
RGBrgb(27, 16, 126)
HSLhsl(246, 77%, 28%)
HSVhsv(246, 87%, 49%)
CMYKcmyk(78.6%, 87.3%, 0%, 50.6%)
CIE-LABlab(16.05, 41.40, -58.26)
CIE-LCHlch(16.05, 71.47, 305.40°)
OKLaboklab(29.48% 0.0095 -0.1685)
OKLCHoklch(29.48% 0.169 273.2)
XYZxyz(4.4019, 2.1095, 19.9098)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B107E #737E10
analogous
#103C7E #1B107E #52107E
triadic
#1B107E #7E1B10 #107E1B
tetradic
#1B107E #7E103C #737E10 #107E52
square
#1B107E #7E103C #737E10 #107E52
split-complementary
#1B107E #7E5210 #3C7E10
monochromatic
#06031B #0F0948 #1B107E #2717B4 #3825E3

Accessibility & contrast

On white

14.77
#1B107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1B107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B107E
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B107E#FFFFFF#000000##FFFFFF
##1B107E1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b107e;
/* rgb */ color: rgb(27, 16, 126);
/* oklch */ color: oklch(29.5% 0.169 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b53a5',
    500: '#1b107e',
    950: '#000000',
  },
}
SCSS
$custom: #1b107e;
$custom-light: #6b53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b107e",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 246,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29483,
    "c": 0.16874,
    "h": 273.2
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#1B107E
secondary
#A8B436
accent
#F434E1
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B107E

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

Preview Lab → · Contrast checker → · Palette generator →

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