#1B2480#1B2480

#1B2480 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.152 H 270.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#1B2480
RGBrgb(27, 36, 128)
HSLhsl(235, 65%, 30%)
HSVhsv(235, 79%, 50%)
CMYKcmyk(78.9%, 71.9%, 0%, 49.8%)
CIE-LABlab(20.25, 30.80, -52.58)
CIE-LCHlch(20.25, 60.94, 300.36°)
OKLaboklab(32.52% 0.0011 -0.1522)
OKLCHoklch(32.52% 0.152 270.4)
XYZxyz(4.9778, 3.0527, 20.7448)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2480 #80771B
analogous
#1B5780 #1B2480 #441B80
triadic
#1B2480 #801B24 #24801B
tetradic
#1B2480 #801B57 #80771B #1B8044
square
#1B2480 #801B57 #80771B #1B8044
split-complementary
#1B2480 #80441B #57801B
monochromatic
#06081B #10164D #1B2480 #2632B3 #3F4CD6

Accessibility & contrast

On white

13.04
#1B2480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B2480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2480
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2480#FFFFFF#000000##FFFFFF
##1B24801.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2480;
/* rgb */ color: rgb(27, 36, 128);
/* oklch */ color: oklch(32.5% 0.152 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a5fa6',
    500: '#1b2480',
    950: '#000000',
  },
}
SCSS
$custom: #1b2480;
$custom-light: #6a5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2480",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 128
  },
  "hsl": {
    "h": 234.653,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32515,
    "c": 0.1522,
    "h": 270.4
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#1B2480
secondary
#B4AA43
accent
#D940E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B2480

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

Preview Lab → · Contrast checker → · Palette generator →

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