#1B107F#1B107F

#1B107F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.170 H 273.1°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#1B107F
RGBrgb(27, 16, 127)
HSLhsl(246, 78%, 28%)
HSVhsv(246, 87%, 50%)
CMYKcmyk(78.7%, 87.4%, 0%, 50.2%)
CIE-LABlab(16.18, 41.72, -58.68)
CIE-LCHlch(16.18, 72.00, 305.41°)
OKLaboklab(29.61% 0.0092 -0.1697)
OKLCHoklch(29.61% 0.17 273.1)
XYZxyz(4.4668, 2.1354, 20.2513)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B107F #747F10
analogous
#103C7F #1B107F #52107F
triadic
#1B107F #7F1B10 #107F1B
tetradic
#1B107F #7F103C #747F10 #107F52
square
#1B107F #7F103C #747F10 #107F52
split-complementary
#1B107F #7F5210 #3C7F10
monochromatic
#06031B #0F0949 #1B107F #2717B5 #3926E4

Accessibility & contrast

On white

14.71
#1B107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1B107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B107F
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B107F#FFFFFF#000000##FFFFFF
##1B107F1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b107f;
/* rgb */ color: rgb(27, 16, 127);
/* oklch */ color: oklch(29.6% 0.170 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b53a5',
    500: '#1b107f',
    950: '#000000',
  },
}
SCSS
$custom: #1b107f;
$custom-light: #6b53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b107f",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 245.946,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.2961,
    "c": 0.16993,
    "h": 273.1
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B107F

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

Preview Lab → · Contrast checker → · Palette generator →

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