#1B338A#1B338A

#1B338A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.148 H 266.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#1B338A
RGBrgb(27, 51, 138)
HSLhsl(227, 67%, 32%)
HSVhsv(227, 80%, 54%)
CMYKcmyk(80.4%, 63%, 0%, 45.9%)
CIE-LABlab(25.06, 24.53, -50.97)
CIE-LCHlch(25.06, 56.56, 295.70°)
OKLaboklab(36.33% -0.0084 -0.1474)
OKLCHoklch(36.33% 0.148 266.7)
XYZxyz(6.2217, 4.4349, 24.5680)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B338A #8A721B
analogous
#1B6B8A #1B338A #3A1B8A
triadic
#1B338A #8A1B33 #338A1B
tetradic
#1B338A #8A1B6B #8A721B #1B8A3A
square
#1B338A #8A1B6B #8A721B #1B8A3A
split-complementary
#1B338A #8A3A1B #6B8A1B
monochromatic
#070D24 #112057 #1B338A #2546BD #4565DB

Accessibility & contrast

On white

11.13
#1B338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1B338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B338A
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B338A#FFFFFF#000000##FFFFFF
##1B338A1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b338a;
/* rgb */ color: rgb(27, 51, 138);
/* oklch */ color: oklch(36.3% 0.148 266.7);
Tailwind
colors: {
  custom: {
    50: '#6b6aad',
    500: '#1b338a',
    950: '#000000',
  },
}
SCSS
$custom: #1b338a;
$custom-light: #6b6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b338a",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 227.027,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36332,
    "c": 0.14762,
    "h": 266.7
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#1B338A
secondary
#BCA245
accent
#C53EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1B338A

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

Preview Lab → · Contrast checker → · Palette generator →

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