#1B345F#1B345F

#1B345F is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.0% C 0.082 H 260.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1B345F
RGBrgb(27, 52, 95)
HSLhsl(218, 56%, 24%)
HSVhsv(218, 72%, 37%)
CMYKcmyk(71.6%, 45.3%, 0%, 62.7%)
CIE-LABlab(22.00, 6.35, -28.49)
CIE-LCHlch(22.00, 29.19, 282.57°)
OKLaboklab(32.95% -0.0136 -0.0813)
OKLCHoklch(32.95% 0.082 260.5)
XYZxyz(3.7448, 3.5148, 11.3053)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B345F #5F461B
analogous
#1B565F #1B345F #241B5F
triadic
#1B345F #5F1B34 #345F1B
tetradic
#1B345F #5F1B56 #5F461B #1B5F24
square
#1B345F #5F1B56 #5F461B #1B5F24
split-complementary
#1B345F #5F241B #565F1B
monochromatic
#070D18 #0D1A2F #1B345F #294E8F #3668BE

Accessibility & contrast

On white

12.33
#1B345F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B345F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B345F#FFFFFF#000000##FFFFFF
##1B345F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203861
Deuteranopia (green-blind)
#15325E
Tritanopia (blue-blind)
#003E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b345f;
/* rgb */ color: rgb(27, 52, 95);
/* oklch */ color: oklch(33.0% 0.082 260.5);
Tailwind
colors: {
  custom: {
    50: '#606b8d',
    500: '#1b345f',
    950: '#000000',
  },
}
SCSS
$custom: #1b345f;
$custom-light: #606b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b345f",
  "rgb": {
    "r": 27,
    "g": 52,
    "b": 95
  },
  "hsl": {
    "h": 217.941,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.32954,
    "c": 0.08242,
    "h": 260.5
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#1B345F
secondary
#957641
accent
#A849DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B345F

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

Preview Lab → · Contrast checker → · Palette generator →

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