#1B335A#1B335A

#1B335A is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.3% C 0.076 H 259.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#1B335A
RGBrgb(27, 51, 90)
HSLhsl(217, 54%, 23%)
HSVhsv(217, 70%, 35%)
CMYKcmyk(70%, 43.3%, 0%, 64.7%)
CIE-LABlab(21.35, 5.04, -26.23)
CIE-LCHlch(21.35, 26.71, 280.88°)
OKLaboklab(32.35% -0.0136 -0.0747)
OKLCHoklch(32.35% 0.076 259.7)
XYZxyz(3.4806, 3.3385, 10.1318)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B335A #5A421B
analogous
#1B525A #1B335A #221B5A
triadic
#1B335A #5A1B33 #335A1B
tetradic
#1B335A #5A1B52 #5A421B #1B5A22
square
#1B335A #5A1B52 #5A421B #1B5A22
split-complementary
#1B335A #5A221B #525A1B
monochromatic
#070D18 #0D182B #1B335A #294E89 #3768B8

Accessibility & contrast

On white

12.59
#1B335A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B335A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B335A
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B335A#FFFFFF#000000##FFFFFF
##1B335A1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21365C
Deuteranopia (green-blind)
#183159
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b335a;
/* rgb */ color: rgb(27, 51, 90);
/* oklch */ color: oklch(32.3% 0.076 259.7);
Tailwind
colors: {
  custom: {
    50: '#5f6a89',
    500: '#1b335a',
    950: '#000000',
  },
}
SCSS
$custom: #1b335a;
$custom-light: #5f6a89;
$custom-dark: #000000;
JSON
{
  "hex": "#1b335a",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 90
  },
  "hsl": {
    "h": 217.143,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32349,
    "c": 0.07593,
    "h": 259.7
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#1B335A
secondary
#907241
accent
#A54BDD
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #1B335A

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

Preview Lab → · Contrast checker → · Palette generator →

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