#1B283F#1B283F

#1B283F is a dark, muted blue. Relative luminance 0.021; OKLCH L 27.7% C 0.046 H 261.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#1B283F
RGBrgb(27, 40, 63)
HSLhsl(218, 40%, 18%)
HSVhsv(218, 57%, 25%)
CMYKcmyk(57.1%, 36.5%, 0%, 75.3%)
CIE-LABlab(16.05, 2.32, -16.35)
CIE-LCHlch(16.05, 16.51, 278.09°)
OKLaboklab(27.7% -0.007 -0.046)
OKLCHoklch(27.7% 0.046 261.3)
XYZxyz(2.1077, 2.1093, 4.9977)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B283F #3F321B
analogous
#1B3A3F #1B283F #201B3F
triadic
#1B283F #3F1B28 #283F1B
tetradic
#1B283F #3F1B3A #3F321B #1B3F20
square
#1B283F #3F1B3A #3F321B #1B3F20
split-complementary
#1B283F #3F201B #3A3F1B
monochromatic
#090E15 #090E15 #1B283F #2D436A #405E95

Accessibility & contrast

On white

14.77
#1B283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1B283F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B283F
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B283F#FFFFFF#000000##FFFFFF
##1B283F1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2A40
Deuteranopia (green-blind)
#1B263F
Tritanopia (blue-blind)
#0B2D30
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b283f;
/* rgb */ color: rgb(27, 40, 63);
/* oklch */ color: oklch(27.7% 0.046 261.3);
Tailwind
colors: {
  custom: {
    50: '#5a6174',
    500: '#1b283f',
    950: '#000000',
  },
}
SCSS
$custom: #1b283f;
$custom-light: #5a6174;
$custom-dark: #000000;
JSON
{
  "hex": "#1b283f",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 218.333,
    "s": 40,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27697,
    "c": 0.04649,
    "h": 261.3
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#1B283F
secondary
#746241
accent
#A558D0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040508
muted
#79797B

Preview Lab

Preview with #1B283F

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

Preview Lab → · Contrast checker → · Palette generator →

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