#1B107D#1B107D

#1B107D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.168 H 273.3°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#1B107D
RGBrgb(27, 16, 125)
HSLhsl(246, 77%, 28%)
HSVhsv(246, 87%, 49%)
CMYKcmyk(78.4%, 87.2%, 0%, 51%)
CIE-LABlab(15.92, 41.09, -57.84)
CIE-LCHlch(15.92, 70.95, 305.39°)
OKLaboklab(29.36% 0.0098 -0.1672)
OKLCHoklch(29.36% 0.168 273.3)
XYZxyz(4.3377, 2.0838, 19.5717)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B107D #727D10
analogous
#103B7D #1B107D #51107D
triadic
#1B107D #7D1B10 #107D1B
tetradic
#1B107D #7D103B #727D10 #107D51
square
#1B107D #7D103B #727D10 #107D51
split-complementary
#1B107D #7D5110 #3B7D10
monochromatic
#06031B #0F0947 #1B107D #2717B3 #3824E3

Accessibility & contrast

On white

14.82
#1B107D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B107D
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B107D#FFFFFF#000000##FFFFFF
##1B107D1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C80
Deuteranopia (green-blind)
#00227B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b107d;
/* rgb */ color: rgb(27, 16, 125);
/* oklch */ color: oklch(29.4% 0.168 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b53a4',
    500: '#1b107d',
    950: '#000000',
  },
}
SCSS
$custom: #1b107d;
$custom-light: #6b53a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b107d",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 125
  },
  "hsl": {
    "h": 246.055,
    "s": 77.305,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29356,
    "c": 0.16753,
    "h": 273.3
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#1B107D
secondary
#A7B335
accent
#F434E0
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B107D

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

Preview Lab → · Contrast checker → · Palette generator →

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