#1B335E#1B335E

#1B335E is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.6% C 0.082 H 261.1°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#1B335E
RGBrgb(27, 51, 94)
HSLhsl(219, 55%, 24%)
HSVhsv(219, 71%, 37%)
CMYKcmyk(71.3%, 45.7%, 0%, 63.1%)
CIE-LABlab(21.61, 6.66, -28.45)
CIE-LCHlch(21.61, 29.22, 283.17°)
OKLaboklab(32.63% -0.0127 -0.0812)
OKLCHoklch(32.63% 0.082 261.1)
XYZxyz(3.6555, 3.4085, 11.0528)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B335E #5E461B
analogous
#1B545E #1B335E #241B5E
triadic
#1B335E #5E1B33 #335E1B
tetradic
#1B335E #5E1B54 #5E461B #1B5E24
square
#1B335E #5E1B54 #5E461B #1B5E24
split-complementary
#1B335E #5E241B #545E1B
monochromatic
#070D18 #0D192E #1B335E #294D8E #3667BD

Accessibility & contrast

On white

12.49
#1B335E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B335E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B335E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B335E#FFFFFF#000000##FFFFFF
##1B335E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3760
Deuteranopia (green-blind)
#14315D
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b335e;
/* rgb */ color: rgb(27, 51, 94);
/* oklch */ color: oklch(32.6% 0.082 261.1);
Tailwind
colors: {
  custom: {
    50: '#606a8c',
    500: '#1b335e',
    950: '#000000',
  },
}
SCSS
$custom: #1b335e;
$custom-light: #606a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b335e",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 218.507,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32633,
    "c": 0.08219,
    "h": 261.1
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#1B335E
secondary
#947641
accent
#A949DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B335E

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

Preview Lab → · Contrast checker → · Palette generator →

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