#1B318E#1B318E

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

Color values

HEX#1B318E
RGBrgb(27, 49, 142)
HSLhsl(229, 68%, 33%)
HSVhsv(229, 81%, 56%)
CMYKcmyk(81%, 65.5%, 0%, 44.3%)
CIE-LABlab(24.90, 27.47, -53.72)
CIE-LCHlch(24.90, 60.33, 297.08°)
OKLaboklab(36.32% -0.0072 -0.1555)
OKLCHoklch(36.32% 0.156 267.3)
XYZxyz(6.4311, 4.3819, 26.0928)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B318E #8E781B
analogous
#1B6A8E #1B318E #3F1B8E
triadic
#1B318E #8E1B31 #318E1B
tetradic
#1B318E #8E1B6A #8E781B #1B8E3F
square
#1B318E #8E1B6A #8E781B #1B8E3F
split-complementary
#1B318E #8E3F1B #6A8E1B
monochromatic
#070E27 #111F5B #1B318E #2543C1 #4764DC

Accessibility & contrast

On white

11.19
#1B318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1B318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B318E
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B318E#FFFFFF#000000##FFFFFF
##1B318E1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b318e;
/* rgb */ color: rgb(27, 49, 142);
/* oklch */ color: oklch(36.3% 0.156 267.3);
Tailwind
colors: {
  custom: {
    50: '#6c69b0',
    500: '#1b318e',
    950: '#000000',
  },
}
SCSS
$custom: #1b318e;
$custom-light: #6c69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b318e",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 228.522,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36323,
    "c": 0.15563,
    "h": 267.3
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#1B318E
secondary
#BEA747
accent
#CA3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B318E

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

Preview Lab → · Contrast checker → · Palette generator →

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