#1B335F#1B335F

#1B335F is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.7% C 0.084 H 261.4°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#1B335F
RGBrgb(27, 51, 95)
HSLhsl(219, 56%, 24%)
HSVhsv(219, 72%, 37%)
CMYKcmyk(71.6%, 46.3%, 0%, 62.7%)
CIE-LABlab(21.68, 7.07, -29.00)
CIE-LCHlch(21.68, 29.85, 283.69°)
OKLaboklab(32.71% -0.0125 -0.0828)
OKLCHoklch(32.71% 0.084 261.4)
XYZxyz(3.7006, 3.4265, 11.2906)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B335F #5F471B
analogous
#1B555F #1B335F #251B5F
triadic
#1B335F #5F1B33 #335F1B
tetradic
#1B335F #5F1B55 #5F471B #1B5F25
square
#1B335F #5F1B55 #5F471B #1B5F25
split-complementary
#1B335F #5F251B #555F1B
monochromatic
#070D18 #0D192F #1B335F #294D8F #3666BE

Accessibility & contrast

On white

12.46
#1B335F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B335F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B335F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B335F#FFFFFF#000000##FFFFFF
##1B335F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3761
Deuteranopia (green-blind)
#13315E
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b335f;
/* rgb */ color: rgb(27, 51, 95);
/* oklch */ color: oklch(32.7% 0.084 261.4);
Tailwind
colors: {
  custom: {
    50: '#606a8d',
    500: '#1b335f',
    950: '#000000',
  },
}
SCSS
$custom: #1b335f;
$custom-light: #606a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b335f",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 95
  },
  "hsl": {
    "h": 218.824,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.32706,
    "c": 0.08376,
    "h": 261.4
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#1B335F
secondary
#957741
accent
#AA49DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B335F

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

Preview Lab → · Contrast checker → · Palette generator →

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