#1B0F7F#1B0F7F

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

Color values

HEX#1B0F7F
RGBrgb(27, 15, 127)
HSLhsl(246, 79%, 28%)
HSVhsv(246, 88%, 50%)
CMYKcmyk(78.7%, 88.2%, 0%, 50.2%)
CIE-LABlab(16.04, 42.15, -58.92)
CIE-LCHlch(16.04, 72.44, 305.58°)
OKLaboklab(29.51% 0.0094 -0.1704)
OKLCHoklch(29.51% 0.171 273.2)
XYZxyz(4.4523, 2.1065, 20.2465)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F7F #737F0F
analogous
#0F3B7F #1B0F7F #530F7F
triadic
#1B0F7F #7F1B0F #0F7F1B
tetradic
#1B0F7F #7F0F3B #737F0F #0F7F53
square
#1B0F7F #7F0F3B #737F0F #0F7F53
split-complementary
#1B0F7F #7F530F #3B7F0F
monochromatic
#06031B #0F0948 #1B0F7F #2715B6 #3823E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B0F7F#FFFFFF#000000##FFFFFF
##1B0F7F1.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)
#002D82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b0f7f;
/* rgb */ color: rgb(27, 15, 127);
/* oklch */ color: oklch(29.5% 0.171 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c53a5',
    500: '#1b0f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f7f;
$custom-light: #6c53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f7f",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 127
  },
  "hsl": {
    "h": 246.429,
    "s": 78.873,
    "l": 27.843
  },
  "oklch": {
    "l": 0.2951,
    "c": 0.17062,
    "h": 273.2
  },
  "luminance": 0.02107
}

Semantic roles & 50–950 ramp

primary
#1B0F7F
secondary
#A8B534
accent
#F532E0
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B0F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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