#1B319F#1B319F

#1B319F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.178 H 267.4°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#1B319F
RGBrgb(27, 49, 159)
HSLhsl(230, 71%, 36%)
HSVhsv(230, 83%, 62%)
CMYKcmyk(83%, 69.2%, 0%, 37.6%)
CIE-LABlab(26.54, 33.98, -61.45)
CIE-LCHlch(26.54, 70.22, 298.94°)
OKLaboklab(38.03% -0.0081 -0.1781)
OKLCHoklch(38.03% 0.178 267.4)
XYZxyz(7.8061, 4.9319, 33.3347)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B319F #9F891B
analogous
#1B739F #1B319F #471B9F
triadic
#1B319F #9F1B31 #319F1B
tetradic
#1B319F #9F1B73 #9F891B #1B9F47
square
#1B319F #9F1B73 #9F891B #1B9F47
split-complementary
#1B319F #9F471B #739F1B
monochromatic
#091136 #12216B #1B319F #2441D3 #536BE2

Accessibility & contrast

On white

10.57
#1B319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1B319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B319F
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B319F#FFFFFF#000000##FFFFFF
##1B319F1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1b319f;
/* rgb */ color: rgb(27, 49, 159);
/* oklch */ color: oklch(38.0% 0.178 267.4);
Tailwind
colors: {
  custom: {
    50: '#7169bc',
    500: '#1b319f',
    950: '#000000',
  },
}
SCSS
$custom: #1b319f;
$custom-light: #7169bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b319f",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 230,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38027,
    "c": 0.17824,
    "h": 267.4
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#1B319F
secondary
#C5B151
accent
#D03AEE
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1B319F

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

Preview Lab → · Contrast checker → · Palette generator →

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