#1B2F4F#1B2F4F

#1B2F4F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.064 H 259.4°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#1B2F4F
RGBrgb(27, 47, 79)
HSLhsl(217, 49%, 21%)
HSVhsv(217, 66%, 31%)
CMYKcmyk(65.8%, 40.5%, 0%, 69%)
CIE-LABlab(19.35, 3.49, -22.08)
CIE-LCHlch(19.35, 22.35, 278.99°)
OKLaboklab(30.57% -0.0117 -0.0626)
OKLCHoklch(30.57% 0.064 259.4)
XYZxyz(2.8793, 2.8303, 7.7902)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F4F #4F3B1B
analogous
#1B494F #1B2F4F #211B4F
triadic
#1B2F4F #4F1B2F #2F4F1B
tetradic
#1B2F4F #4F1B49 #4F3B1B #1B4F21
square
#1B2F4F #4F1B49 #4F3B1B #1B4F21
split-complementary
#1B2F4F #4F211B #494F1B
monochromatic
#080E17 #0B1421 #1B2F4F #2B4A7D #3A65AA

Accessibility & contrast

On white

13.41
#1B2F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B2F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F4F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F4F#FFFFFF#000000##FFFFFF
##1B2F4F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213250
Deuteranopia (green-blind)
#1B2D4E
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b2f4f;
/* rgb */ color: rgb(27, 47, 79);
/* oklch */ color: oklch(30.6% 0.064 259.4);
Tailwind
colors: {
  custom: {
    50: '#5d6780',
    500: '#1b2f4f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f4f;
$custom-light: #5d6780;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f4f",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 79
  },
  "hsl": {
    "h": 216.923,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30573,
    "c": 0.06366,
    "h": 259.4
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#1B2F4F
secondary
#856B41
accent
#A44FD9
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1B2F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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