#1B339E#1B339E

#1B339E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.175 H 267.0°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#1B339E
RGBrgb(27, 51, 158)
HSLhsl(229, 71%, 36%)
HSVhsv(229, 83%, 62%)
CMYKcmyk(82.9%, 67.7%, 0%, 38%)
CIE-LABlab(26.93, 32.29, -60.20)
CIE-LCHlch(26.93, 68.32, 298.21°)
OKLaboklab(38.28% -0.009 -0.1744)
OKLCHoklch(38.28% 0.175 267)
XYZxyz(7.8052, 5.0684, 32.9080)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B339E #9E861B
analogous
#1B759E #1B339E #451B9E
triadic
#1B339E #9E1B33 #339E1B
tetradic
#1B339E #9E1B75 #9E861B #1B9E45
square
#1B339E #9E1B75 #9E861B #1B9E45
split-complementary
#1B339E #9E451B #759E1B
monochromatic
#091135 #12226A #1B339E #2444D2 #526CE1

Accessibility & contrast

On white

10.43
#1B339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1B339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B339E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B339E#FFFFFF#000000##FFFFFF
##1B339E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b339e;
/* rgb */ color: rgb(27, 51, 158);
/* oklch */ color: oklch(38.3% 0.175 267.0);
Tailwind
colors: {
  custom: {
    50: '#706abc',
    500: '#1b339e',
    950: '#000000',
  },
}
SCSS
$custom: #1b339e;
$custom-light: #706abc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b339e",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 229.008,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3828,
    "c": 0.17463,
    "h": 267
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#1B339E
secondary
#C4AF51
accent
#CD3AEE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1B339E

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

Preview Lab → · Contrast checker → · Palette generator →

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