#1B0F7E#1B0F7E

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

Color values

HEX#1B0F7E
RGBrgb(27, 15, 126)
HSLhsl(246, 79%, 28%)
HSVhsv(246, 88%, 49%)
CMYKcmyk(78.6%, 88.1%, 0%, 50.6%)
CIE-LABlab(15.90, 41.84, -58.50)
CIE-LCHlch(15.90, 71.92, 305.57°)
OKLaboklab(29.38% 0.0097 -0.1691)
OKLCHoklch(29.38% 0.169 273.3)
XYZxyz(4.3875, 2.0806, 19.9050)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F7E #727E0F
analogous
#0F3B7E #1B0F7E #520F7E
triadic
#1B0F7E #7E1B0F #0F7E1B
tetradic
#1B0F7E #7E0F3B #727E0F #0F7E52
square
#1B0F7E #7E0F3B #727E0F #0F7E52
split-complementary
#1B0F7E #7E520F #3B7E0F
monochromatic
#06031B #0F0847 #1B0F7E #2716B5 #3823E5

Accessibility & contrast

On white

14.83
#1B0F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0F7E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F7E#FFFFFF#000000##FFFFFF
##1B0F7E1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b0f7e;
/* rgb */ color: rgb(27, 15, 126);
/* oklch */ color: oklch(29.4% 0.169 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b52a5',
    500: '#1b0f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f7e;
$custom-light: #6b52a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f7e",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 126
  },
  "hsl": {
    "h": 246.486,
    "s": 78.723,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29382,
    "c": 0.16943,
    "h": 273.3
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#1B0F7E
secondary
#A7B534
accent
#F533E0
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08020F
muted
#7B787F

Preview Lab

Preview with #1B0F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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