#1B318A#1B318A

#1B318A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.150 H 267.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#1B318A
RGBrgb(27, 49, 138)
HSLhsl(228, 67%, 32%)
HSVhsv(228, 80%, 54%)
CMYKcmyk(80.4%, 64.5%, 0%, 45.9%)
CIE-LABlab(24.53, 25.90, -51.84)
CIE-LCHlch(24.53, 57.95, 296.55°)
OKLaboklab(35.94% -0.0071 -0.15)
OKLCHoklch(35.94% 0.15 267.3)
XYZxyz(6.1362, 4.2639, 24.5394)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B318A #8A741B
analogous
#1B698A #1B318A #3C1B8A
triadic
#1B318A #8A1B31 #318A1B
tetradic
#1B318A #8A1B69 #8A741B #1B8A3C
square
#1B318A #8A1B69 #8A741B #1B8A3C
split-complementary
#1B318A #8A3C1B #698A1B
monochromatic
#070D24 #111F57 #1B318A #2543BD #4563DB

Accessibility & contrast

On white

11.33
#1B318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1B318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B318A
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B318A#FFFFFF#000000##FFFFFF
##1B318A1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b318a;
/* rgb */ color: rgb(27, 49, 138);
/* oklch */ color: oklch(35.9% 0.150 267.3);
Tailwind
colors: {
  custom: {
    50: '#6b68ad',
    500: '#1b318a',
    950: '#000000',
  },
}
SCSS
$custom: #1b318a;
$custom-light: #6b68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b318a",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 228.108,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35936,
    "c": 0.15013,
    "h": 267.3
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#1B318A
secondary
#BCA445
accent
#C83EEA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B318A

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

Preview Lab → · Contrast checker → · Palette generator →

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