#1B1F79#1B1F79

#1B1F79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.148 H 271.8°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#1B1F79
RGBrgb(27, 31, 121)
HSLhsl(237, 64%, 29%)
HSVhsv(237, 78%, 47%)
CMYKcmyk(77.7%, 74.4%, 0%, 52.5%)
CIE-LABlab(18.33, 31.43, -51.29)
CIE-LCHlch(18.33, 60.15, 301.50°)
OKLaboklab(30.91% 0.0047 -0.1484)
OKLCHoklch(30.91% 0.149 271.8)
XYZxyz(4.3920, 2.5930, 18.3545)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F79 #79751B
analogous
#1B4E79 #1B1F79 #461B79
triadic
#1B1F79 #791B1F #1F791B
tetradic
#1B1F79 #791B4E #79751B #1B7946
square
#1B1F79 #791B4E #79751B #1B7946
split-complementary
#1B1F79 #79461B #4E791B
monochromatic
#060619 #101247 #1B1F79 #262CAB #3B42D3

Accessibility & contrast

On white

13.83
#1B1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F79
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F79#FFFFFF#000000##FFFFFF
##1B1F791.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1f79;
/* rgb */ color: rgb(27, 31, 121);
/* oklch */ color: oklch(30.9% 0.148 271.8);
Tailwind
colors: {
  custom: {
    50: '#685ba1',
    500: '#1b1f79',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f79;
$custom-light: #685ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f79",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 237.447,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30911,
    "c": 0.1485,
    "h": 271.8
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#1B1F79
secondary
#ADA943
accent
#E041E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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