#1B336F#1B336F

#1B336F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.108 H 264.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#1B336F
RGBrgb(27, 51, 111)
HSLhsl(223, 61%, 27%)
HSVhsv(223, 76%, 44%)
CMYKcmyk(75.7%, 54.1%, 0%, 56.5%)
CIE-LABlab(22.82, 13.61, -37.55)
CIE-LCHlch(22.82, 39.94, 289.92°)
OKLaboklab(33.95% -0.0098 -0.1079)
OKLCHoklch(33.95% 0.108 264.8)
XYZxyz(4.5041, 3.7479, 15.5219)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B336F #6F571B
analogous
#1B5D6F #1B336F #2D1B6F
triadic
#1B336F #6F1B33 #336F1B
tetradic
#1B336F #6F1B5D #6F571B #1B6F2D
square
#1B336F #6F1B5D #6F571B #1B6F2D
split-complementary
#1B336F #6F2D1B #5D6F1B
monochromatic
#060B19 #0F1C3E #1B336F #274AA0 #3662CE

Accessibility & contrast

On white

12.00
#1B336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1B336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B336F
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B336F#FFFFFF#000000##FFFFFF
##1B336F1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3B71
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b336f;
/* rgb */ color: rgb(27, 51, 111);
/* oklch */ color: oklch(33.9% 0.108 264.8);
Tailwind
colors: {
  custom: {
    50: '#646a99',
    500: '#1b336f',
    950: '#000000',
  },
}
SCSS
$custom: #1b336f;
$custom-light: #646a99;
$custom-dark: #000000;
JSON
{
  "hex": "#1b336f",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 222.857,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33947,
    "c": 0.1084,
    "h": 264.8
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#1B336F
secondary
#A48842
accent
#B644E4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1B336F

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

Preview Lab → · Contrast checker → · Palette generator →

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