#1B274D#1B274D

#1B274D is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.072 H 268.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#1B274D
RGBrgb(27, 39, 77)
HSLhsl(226, 48%, 20%)
HSVhsv(226, 65%, 30%)
CMYKcmyk(64.9%, 49.4%, 0%, 69.8%)
CIE-LABlab(16.60, 8.51, -25.10)
CIE-LCHlch(16.60, 26.50, 288.72°)
OKLaboklab(28.41% -0.002 -0.0715)
OKLCHoklch(28.41% 0.072 268.4)
XYZxyz(2.5166, 2.2197, 7.3156)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B274D #4D411B
analogous
#1B404D #1B274D #281B4D
triadic
#1B274D #4D1B27 #274D1B
tetradic
#1B274D #4D1B40 #4D411B #1B4D28
square
#1B274D #4D1B40 #4D411B #1B4D28
split-complementary
#1B274D #4D281B #404D1B
monochromatic
#080B17 #0B1020 #1B274D #2B3E7A #3B55A8

Accessibility & contrast

On white

14.54
#1B274D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B274D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B274D
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B274D#FFFFFF#000000##FFFFFF
##1B274D1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162B4E
Deuteranopia (green-blind)
#0E274C
Tritanopia (blue-blind)
#002F36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b274d;
/* rgb */ color: rgb(27, 39, 77);
/* oklch */ color: oklch(28.4% 0.072 268.4);
Tailwind
colors: {
  custom: {
    50: '#5d607f',
    500: '#1b274d',
    950: '#000000',
  },
}
SCSS
$custom: #1b274d;
$custom-light: #5d607f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b274d",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 77
  },
  "hsl": {
    "h": 225.6,
    "s": 48.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28408,
    "c": 0.07157,
    "h": 268.4
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#1B274D
secondary
#837341
accent
#B750D8
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #1B274D

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

Preview Lab → · Contrast checker → · Palette generator →

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