#1B335B#1B335B

#1B335B is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.4% C 0.077 H 260.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#1B335B
RGBrgb(27, 51, 91)
HSLhsl(218, 54%, 23%)
HSVhsv(218, 70%, 36%)
CMYKcmyk(70.3%, 44%, 0%, 64.3%)
CIE-LABlab(21.42, 5.44, -26.79)
CIE-LCHlch(21.42, 27.34, 281.49°)
OKLaboklab(32.42% -0.0134 -0.0763)
OKLCHoklch(32.42% 0.077 260)
XYZxyz(3.5235, 3.3557, 10.3575)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B335B #5B431B
analogous
#1B535B #1B335B #231B5B
triadic
#1B335B #5B1B33 #335B1B
tetradic
#1B335B #5B1B53 #5B431B #1B5B23
square
#1B335B #5B1B53 #5B431B #1B5B23
split-complementary
#1B335B #5B231B #535B1B
monochromatic
#070D18 #0D192C #1B335B #294D8A #3768B9

Accessibility & contrast

On white

12.57
#1B335B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B335B
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B335B#FFFFFF#000000##FFFFFF
##1B335B1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21375D
Deuteranopia (green-blind)
#17315A
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b335b;
/* rgb */ color: rgb(27, 51, 91);
/* oklch */ color: oklch(32.4% 0.077 260.0);
Tailwind
colors: {
  custom: {
    50: '#5f6a89',
    500: '#1b335b',
    950: '#000000',
  },
}
SCSS
$custom: #1b335b;
$custom-light: #5f6a89;
$custom-dark: #000000;
JSON
{
  "hex": "#1b335b",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 91
  },
  "hsl": {
    "h": 217.5,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32419,
    "c": 0.07749,
    "h": 260
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#1B335B
secondary
#917341
accent
#A64ADE
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #1B335B

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

Preview Lab → · Contrast checker → · Palette generator →

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