#1B2280#1B2280

#1B2280 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.154 H 270.8°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1B2280
RGBrgb(27, 34, 128)
HSLhsl(236, 65%, 30%)
HSVhsv(236, 79%, 50%)
CMYKcmyk(78.9%, 73.4%, 0%, 49.8%)
CIE-LABlab(19.78, 32.10, -53.35)
CIE-LCHlch(19.78, 62.27, 301.03°)
OKLaboklab(32.17% 0.0021 -0.1545)
OKLCHoklch(32.17% 0.154 270.8)
XYZxyz(4.9190, 2.9350, 20.7252)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2280 #80791B
analogous
#1B5480 #1B2280 #471B80
triadic
#1B2280 #801B22 #22801B
tetradic
#1B2280 #801B54 #80791B #1B8047
square
#1B2280 #801B54 #80791B #1B8047
split-complementary
#1B2280 #80471B #54801B
monochromatic
#06071B #10154D #1B2280 #262FB3 #3F49D6

Accessibility & contrast

On white

13.23
#1B2280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B2280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2280
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2280#FFFFFF#000000##FFFFFF
##1B22801.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b2280;
/* rgb */ color: rgb(27, 34, 128);
/* oklch */ color: oklch(32.2% 0.154 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a5ea6',
    500: '#1b2280',
    950: '#000000',
  },
}
SCSS
$custom: #1b2280;
$custom-light: #6a5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2280",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 235.842,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32175,
    "c": 0.15447,
    "h": 270.8
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#1B2280
secondary
#B4AC43
accent
#DC40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1B2280

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

Preview Lab → · Contrast checker → · Palette generator →

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