#1B318F#1B318F

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

Color values

HEX#1B318F
RGBrgb(27, 49, 143)
HSLhsl(229, 68%, 33%)
HSVhsv(229, 81%, 56%)
CMYKcmyk(81.1%, 65.7%, 0%, 43.9%)
CIE-LABlab(24.99, 27.86, -54.18)
CIE-LCHlch(24.99, 60.93, 297.21°)
OKLaboklab(36.42% -0.0073 -0.1568)
OKLCHoklch(36.42% 0.157 267.3)
XYZxyz(6.5065, 4.4121, 26.4900)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B318F #8F791B
analogous
#1B6B8F #1B318F #3F1B8F
triadic
#1B318F #8F1B31 #318F1B
tetradic
#1B318F #8F1B6B #8F791B #1B8F3F
square
#1B318F #8F1B6B #8F791B #1B8F3F
split-complementary
#1B318F #8F3F1B #6B8F1B
monochromatic
#080E28 #111F5C #1B318F #2543C2 #4864DC

Accessibility & contrast

On white

11.15
#1B318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B318F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B318F#FFFFFF#000000##FFFFFF
##1B318F1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b318f;
/* rgb */ color: rgb(27, 49, 143);
/* oklch */ color: oklch(36.4% 0.157 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d69b1',
    500: '#1b318f',
    950: '#000000',
  },
}
SCSS
$custom: #1b318f;
$custom-light: #6d69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b318f",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 228.621,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36421,
    "c": 0.15699,
    "h": 267.3
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#1B318F
secondary
#BEA848
accent
#CA3DEB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B318F

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

Preview Lab → · Contrast checker → · Palette generator →

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