#1B318D#1B318D

#1B318D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.154 H 267.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#1B318D
RGBrgb(27, 49, 141)
HSLhsl(228, 68%, 33%)
HSVhsv(228, 81%, 55%)
CMYKcmyk(80.9%, 65.2%, 0%, 44.7%)
CIE-LABlab(24.80, 27.08, -53.25)
CIE-LCHlch(24.80, 59.74, 296.95°)
OKLaboklab(36.23% -0.0072 -0.1541)
OKLCHoklch(36.23% 0.154 267.3)
XYZxyz(6.3563, 4.3520, 25.6992)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B318D #8D771B
analogous
#1B6A8D #1B318D #3E1B8D
triadic
#1B318D #8D1B31 #318D1B
tetradic
#1B318D #8D1B6A #8D771B #1B8D3E
square
#1B318D #8D1B6A #8D771B #1B8D3E
split-complementary
#1B318D #8D3E1B #6A8D1B
monochromatic
#070D26 #111F5A #1B318D #2543C0 #4763DC

Accessibility & contrast

On white

11.23
#1B318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1B318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B318D
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B318D#FFFFFF#000000##FFFFFF
##1B318D1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b318d;
/* rgb */ color: rgb(27, 49, 141);
/* oklch */ color: oklch(36.2% 0.154 267.3);
Tailwind
colors: {
  custom: {
    50: '#6c69af',
    500: '#1b318d',
    950: '#000000',
  },
}
SCSS
$custom: #1b318d;
$custom-light: #6c69af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b318d",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 228.421,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36226,
    "c": 0.15426,
    "h": 267.3
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#1B318D
secondary
#BDA646
accent
#C93DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B318D

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

Preview Lab → · Contrast checker → · Palette generator →

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