#1B336E#1B336E

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

Color values

HEX#1B336E
RGBrgb(27, 51, 110)
HSLhsl(223, 61%, 27%)
HSVhsv(223, 75%, 43%)
CMYKcmyk(75.5%, 53.6%, 0%, 56.9%)
CIE-LABlab(22.74, 13.20, -37.03)
CIE-LCHlch(22.74, 39.31, 289.62°)
OKLaboklab(33.87% -0.01 -0.1064)
OKLCHoklch(33.87% 0.107 264.6)
XYZxyz(4.4493, 3.7260, 15.2335)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B336E #6E561B
analogous
#1B5D6E #1B336E #2D1B6E
triadic
#1B336E #6E1B33 #336E1B
tetradic
#1B336E #6E1B5D #6E561B #1B6E2D
square
#1B336E #6E1B5D #6E561B #1B6E2D
split-complementary
#1B336E #6E2D1B #5D6E1B
monochromatic
#060B19 #0F1C3D #1B336E #274A9F #3662CE

Accessibility & contrast

On white

12.03
#1B336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B336E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B336E#FFFFFF#000000##FFFFFF
##1B336E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b336e;
/* rgb */ color: rgb(27, 51, 110);
/* oklch */ color: oklch(33.9% 0.107 264.6);
Tailwind
colors: {
  custom: {
    50: '#646a98',
    500: '#1b336e',
    950: '#000000',
  },
}
SCSS
$custom: #1b336e;
$custom-light: #646a98;
$custom-dark: #000000;
JSON
{
  "hex": "#1b336e",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 222.651,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33866,
    "c": 0.10689,
    "h": 264.6
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B336E

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

Preview Lab → · Contrast checker → · Palette generator →

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