#1B274F#1B274F

#1B274F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.075 H 268.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#1B274F
RGBrgb(27, 39, 79)
HSLhsl(226, 49%, 21%)
HSVhsv(226, 66%, 31%)
CMYKcmyk(65.8%, 50.6%, 0%, 69%)
CIE-LABlab(16.74, 9.31, -26.23)
CIE-LCHlch(16.74, 27.84, 289.53°)
OKLaboklab(28.56% -0.0016 -0.0749)
OKLCHoklch(28.56% 0.075 268.8)
XYZxyz(2.5883, 2.2484, 7.6932)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B274F #4F431B
analogous
#1B414F #1B274F #291B4F
triadic
#1B274F #4F1B27 #274F1B
tetradic
#1B274F #4F1B41 #4F431B #1B4F29
square
#1B274F #4F1B41 #4F431B #1B4F29
split-complementary
#1B274F #4F291B #414F1B
monochromatic
#080B17 #0B1021 #1B274F #2B3E7D #3A54AA

Accessibility & contrast

On white

14.48
#1B274F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B274F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B274F
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B274F#FFFFFF#000000##FFFFFF
##1B274F1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142C50
Deuteranopia (green-blind)
#0C274E
Tritanopia (blue-blind)
#003037
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b274f;
/* rgb */ color: rgb(27, 39, 79);
/* oklch */ color: oklch(28.6% 0.075 268.8);
Tailwind
colors: {
  custom: {
    50: '#5d6080',
    500: '#1b274f',
    950: '#000000',
  },
}
SCSS
$custom: #1b274f;
$custom-light: #5d6080;
$custom-dark: #000000;
JSON
{
  "hex": "#1b274f",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 79
  },
  "hsl": {
    "h": 226.154,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2856,
    "c": 0.07489,
    "h": 268.8
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#1B274F
secondary
#857541
accent
#B94FD9
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #1B274F

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

Preview Lab → · Contrast checker → · Palette generator →

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