#1B345D#1B345D

#1B345D is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.8% C 0.079 H 259.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1B345D
RGBrgb(27, 52, 93)
HSLhsl(217, 55%, 24%)
HSVhsv(217, 71%, 36%)
CMYKcmyk(71%, 44.1%, 0%, 63.5%)
CIE-LABlab(21.87, 5.54, -27.38)
CIE-LCHlch(21.87, 27.94, 281.44°)
OKLaboklab(32.81% -0.0141 -0.078)
OKLCHoklch(32.81% 0.079 259.8)
XYZxyz(3.6551, 3.4790, 10.8327)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B345D #5D441B
analogous
#1B555D #1B345D #231B5D
triadic
#1B345D #5D1B34 #345D1B
tetradic
#1B345D #5D1B55 #5D441B #1B5D23
square
#1B345D #5D1B55 #5D441B #1B5D23
split-complementary
#1B345D #5D231B #555D1B
monochromatic
#070D18 #0D192E #1B345D #294F8C #3769BC

Accessibility & contrast

On white

12.38
#1B345D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B345D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B345D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B345D#FFFFFF#000000##FFFFFF
##1B345D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21385F
Deuteranopia (green-blind)
#17325C
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b345d;
/* rgb */ color: rgb(27, 52, 93);
/* oklch */ color: oklch(32.8% 0.079 259.8);
Tailwind
colors: {
  custom: {
    50: '#606b8b',
    500: '#1b345d',
    950: '#000000',
  },
}
SCSS
$custom: #1b345d;
$custom-light: #606b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b345d",
  "rgb": {
    "r": 27,
    "g": 52,
    "b": 93
  },
  "hsl": {
    "h": 217.273,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32811,
    "c": 0.07931,
    "h": 259.8
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#1B345D
secondary
#937441
accent
#A649DE
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B345D

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

Preview Lab → · Contrast checker → · Palette generator →

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