#1B334F#1B334F

#1B334F is a dark, muted cyan. Relative luminance 0.032; OKLCH L 31.6% C 0.059 H 253.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#1B334F
RGBrgb(27, 51, 79)
HSLhsl(212, 49%, 21%)
HSVhsv(212, 66%, 31%)
CMYKcmyk(65.8%, 35.4%, 0%, 69%)
CIE-LABlab(20.69, 0.67, -19.96)
CIE-LCHlch(20.69, 19.97, 271.93°)
OKLaboklab(31.62% -0.0168 -0.0564)
OKLCHoklch(31.62% 0.059 253.4)
XYZxyz(3.0466, 3.1649, 7.8460)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B334F #4F371B
analogous
#1B4D4F #1B334F #1D1B4F
triadic
#1B334F #4F1B33 #334F1B
tetradic
#1B334F #4F1B4D #4F371B #1B4F1D
square
#1B334F #4F1B4D #4F371B #1B4F1D
split-complementary
#1B334F #4F1D1B #4D4F1B
monochromatic
#080F17 #0B1621 #1B334F #2B507D #3A6EAA

Accessibility & contrast

On white

12.86
#1B334F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B334F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B334F
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B334F#FFFFFF#000000##FFFFFF
##1B334F1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273550
Deuteranopia (green-blind)
#20304E
Tritanopia (blue-blind)
#00393D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b334f;
/* rgb */ color: rgb(27, 51, 79);
/* oklch */ color: oklch(31.6% 0.059 253.4);
Tailwind
colors: {
  custom: {
    50: '#5d6a80',
    500: '#1b334f',
    950: '#000000',
  },
}
SCSS
$custom: #1b334f;
$custom-light: #5d6a80;
$custom-dark: #000000;
JSON
{
  "hex": "#1b334f",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 79
  },
  "hsl": {
    "h": 212.308,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3162,
    "c": 0.05883,
    "h": 253.4
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#1B334F
secondary
#856641
accent
#994FD9
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1B334F

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

Preview Lab → · Contrast checker → · Palette generator →

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