#1B318B#1B318B

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

Color values

HEX#1B318B
RGBrgb(27, 49, 139)
HSLhsl(228, 67%, 33%)
HSVhsv(228, 81%, 55%)
CMYKcmyk(80.6%, 64.7%, 0%, 45.5%)
CIE-LABlab(24.62, 26.30, -52.31)
CIE-LCHlch(24.62, 58.55, 296.69°)
OKLaboklab(36.03% -0.0071 -0.1514)
OKLCHoklch(36.03% 0.152 267.3)
XYZxyz(6.2089, 4.2930, 24.9225)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B318B #8B751B
analogous
#1B698B #1B318B #3D1B8B
triadic
#1B318B #8B1B31 #318B1B
tetradic
#1B318B #8B1B69 #8B751B #1B8B3D
square
#1B318B #8B1B69 #8B751B #1B8B3D
split-complementary
#1B318B #8B3D1B #698B1B
monochromatic
#070D25 #111F58 #1B318B #2543BE #4563DB

Accessibility & contrast

On white

11.30
#1B318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1B318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B318B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B318B#FFFFFF#000000##FFFFFF
##1B318B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b318b;
/* rgb */ color: rgb(27, 49, 139);
/* oklch */ color: oklch(36.0% 0.152 267.3);
Tailwind
colors: {
  custom: {
    50: '#6b68ae',
    500: '#1b318b',
    950: '#000000',
  },
}
SCSS
$custom: #1b318b;
$custom-light: #6b68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b318b",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 228.214,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36032,
    "c": 0.15152,
    "h": 267.3
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#1B318B
secondary
#BCA545
accent
#C83DEA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B318B

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

Preview Lab → · Contrast checker → · Palette generator →

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