#1B338E#1B338E

#1B338E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.153 H 266.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#1B338E
RGBrgb(27, 51, 142)
HSLhsl(227, 68%, 33%)
HSVhsv(227, 81%, 56%)
CMYKcmyk(81%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.42, 26.10, -52.86)
CIE-LCHlch(25.42, 58.95, 296.28°)
OKLaboklab(36.71% -0.0084 -0.1529)
OKLCHoklch(36.71% 0.153 266.8)
XYZxyz(6.5166, 4.5529, 26.1213)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B338E #8E761B
analogous
#1B6C8E #1B338E #3C1B8E
triadic
#1B338E #8E1B33 #338E1B
tetradic
#1B338E #8E1B6C #8E761B #1B8E3C
square
#1B338E #8E1B6C #8E761B #1B8E3C
split-complementary
#1B338E #8E3C1B #6C8E1B
monochromatic
#070E27 #11215B #1B338E #2545C1 #4766DC

Accessibility & contrast

On white

10.99
#1B338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1B338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B338E
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B338E#FFFFFF#000000##FFFFFF
##1B338E1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1b338e;
/* rgb */ color: rgb(27, 51, 142);
/* oklch */ color: oklch(36.7% 0.153 266.8);
Tailwind
colors: {
  custom: {
    50: '#6c6ab0',
    500: '#1b338e',
    950: '#000000',
  },
}
SCSS
$custom: #1b338e;
$custom-light: #6c6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b338e",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 227.478,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36711,
    "c": 0.15315,
    "h": 266.8
  },
  "luminance": 0.04554
}

Semantic roles & 50–950 ramp

primary
#1B338E
secondary
#BEA547
accent
#C73DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B338E

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

Preview Lab → · Contrast checker → · Palette generator →

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