#1B338D#1B338D

#1B338D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.152 H 266.8°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#1B338D
RGBrgb(27, 51, 141)
HSLhsl(227, 68%, 33%)
HSVhsv(227, 81%, 55%)
CMYKcmyk(80.9%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.33, 25.71, -52.39)
CIE-LCHlch(25.33, 58.36, 296.14°)
OKLaboklab(36.61% -0.0084 -0.1515)
OKLCHoklch(36.61% 0.152 266.8)
XYZxyz(6.4419, 4.5230, 25.7277)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B338D #8D751B
analogous
#1B6C8D #1B338D #3C1B8D
triadic
#1B338D #8D1B33 #338D1B
tetradic
#1B338D #8D1B6C #8D751B #1B8D3C
square
#1B338D #8D1B6C #8D751B #1B8D3C
split-complementary
#1B338D #8D3C1B #6C8D1B
monochromatic
#070E26 #11205A #1B338D #2546C0 #4766DC

Accessibility & contrast

On white

11.02
#1B338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1B338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B338D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B338D#FFFFFF#000000##FFFFFF
##1B338D1.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1b338d;
/* rgb */ color: rgb(27, 51, 141);
/* oklch */ color: oklch(36.6% 0.152 266.8);
Tailwind
colors: {
  custom: {
    50: '#6c6aaf',
    500: '#1b338d',
    950: '#000000',
  },
}
SCSS
$custom: #1b338d;
$custom-light: #6c6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b338d",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 227.368,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36615,
    "c": 0.15177,
    "h": 266.8
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#1B338D
secondary
#BDA446
accent
#C63DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B338D

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

Preview Lab → · Contrast checker → · Palette generator →

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