#1B345C#1B345C

#1B345C is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.7% C 0.078 H 259.4°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#1B345C
RGBrgb(27, 52, 92)
HSLhsl(217, 55%, 23%)
HSVhsv(217, 71%, 36%)
CMYKcmyk(70.7%, 43.5%, 0%, 63.9%)
CIE-LABlab(21.80, 5.14, -26.83)
CIE-LCHlch(21.80, 27.32, 280.85°)
OKLaboklab(32.74% -0.0143 -0.0764)
OKLCHoklch(32.74% 0.078 259.4)
XYZxyz(3.6111, 3.4613, 10.6009)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B345C #5C431B
analogous
#1B545C #1B345C #221B5C
triadic
#1B345C #5C1B34 #345C1B
tetradic
#1B345C #5C1B54 #5C431B #1B5C22
square
#1B345C #5C1B54 #5C431B #1B5C22
split-complementary
#1B345C #5C221B #545C1B
monochromatic
#070D18 #0D192D #1B345C #294F8B #3769BB

Accessibility & contrast

On white

12.41
#1B345C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B345C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B345C
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B345C#FFFFFF#000000##FFFFFF
##1B345C1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22385E
Deuteranopia (green-blind)
#18315B
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b345c;
/* rgb */ color: rgb(27, 52, 92);
/* oklch */ color: oklch(32.7% 0.078 259.4);
Tailwind
colors: {
  custom: {
    50: '#5f6b8a',
    500: '#1b345c',
    950: '#000000',
  },
}
SCSS
$custom: #1b345c;
$custom-light: #5f6b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b345c",
  "rgb": {
    "r": 27,
    "g": 52,
    "b": 92
  },
  "hsl": {
    "h": 216.923,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32741,
    "c": 0.07775,
    "h": 259.4
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#1B345C
secondary
#927341
accent
#A54ADE
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B345C

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

Preview Lab → · Contrast checker → · Palette generator →

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