#1B1F90#1B1F90

#1B1F90 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.178 H 270.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1B1F90
RGBrgb(27, 31, 144)
HSLhsl(238, 68%, 34%)
HSVhsv(238, 81%, 56%)
CMYKcmyk(81.3%, 78.5%, 0%, 43.5%)
CIE-LABlab(20.93, 39.63, -61.50)
CIE-LCHlch(20.93, 73.16, 302.80°)
OKLaboklab(33.52% 0.0007 -0.1781)
OKLCHoklch(33.52% 0.178 270.2)
XYZxyz(5.9743, 3.2259, 26.6879)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F90 #908C1B
analogous
#1B5990 #1B1F90 #511B90
triadic
#1B1F90 #901B1F #1F901B
tetradic
#1B1F90 #901B59 #908C1B #1B9051
square
#1B1F90 #901B59 #908C1B #1B9051
split-complementary
#1B1F90 #90511B #59901B
monochromatic
#080929 #11145C #1B1F90 #252AC4 #494EDD

Accessibility & contrast

On white

12.76
#1B1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1B1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F90
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F90#FFFFFF#000000##FFFFFF
##1B1F901.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b1f90;
/* rgb */ color: rgb(27, 31, 144);
/* oklch */ color: oklch(33.5% 0.178 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f5cb2',
    500: '#1b1f90',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f90;
$custom-light: #6f5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f90",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 237.949,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33521,
    "c": 0.17811,
    "h": 270.2
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#1B1F90
secondary
#BFBB48
accent
#E53DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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