#1B335C#1B335C

#1B335C is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.5% C 0.079 H 260.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#1B335C
RGBrgb(27, 51, 92)
HSLhsl(218, 55%, 23%)
HSVhsv(218, 71%, 36%)
CMYKcmyk(70.7%, 44.6%, 0%, 63.9%)
CIE-LABlab(21.48, 5.85, -27.34)
CIE-LCHlch(21.48, 27.96, 282.07°)
OKLaboklab(32.49% -0.0132 -0.0779)
OKLCHoklch(32.49% 0.079 260.4)
XYZxyz(3.5669, 3.3730, 10.5862)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B335C #5C441B
analogous
#1B535C #1B335C #231B5C
triadic
#1B335C #5C1B33 #335C1B
tetradic
#1B335C #5C1B53 #5C441B #1B5C23
square
#1B335C #5C1B53 #5C441B #1B5C23
split-complementary
#1B335C #5C231B #535C1B
monochromatic
#070D18 #0D192D #1B335C #294D8B #3767BB

Accessibility & contrast

On white

12.54
#1B335C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B335C
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B335C#FFFFFF#000000##FFFFFF
##1B335C1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20375E
Deuteranopia (green-blind)
#16315B
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b335c;
/* rgb */ color: rgb(27, 51, 92);
/* oklch */ color: oklch(32.5% 0.079 260.4);
Tailwind
colors: {
  custom: {
    50: '#5f6a8a',
    500: '#1b335c',
    950: '#000000',
  },
}
SCSS
$custom: #1b335c;
$custom-light: #5f6a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b335c",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 92
  },
  "hsl": {
    "h": 217.846,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3249,
    "c": 0.07905,
    "h": 260.4
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#1B335C
secondary
#927441
accent
#A74ADE
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B335C

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

Preview Lab → · Contrast checker → · Palette generator →

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