#1B274B#1B274B

#1B274B is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.068 H 268.0°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#1B274B
RGBrgb(27, 39, 75)
HSLhsl(225, 47%, 20%)
HSVhsv(225, 64%, 29%)
CMYKcmyk(64%, 48%, 0%, 70.6%)
CIE-LABlab(16.46, 7.71, -23.95)
CIE-LCHlch(16.46, 25.17, 287.84°)
OKLaboklab(28.26% -0.0024 -0.0682)
OKLCHoklch(28.26% 0.068 268)
XYZxyz(2.4471, 2.1919, 6.9494)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B274B #4B3F1B
analogous
#1B3F4B #1B274B #271B4B
triadic
#1B274B #4B1B27 #274B1B
tetradic
#1B274B #4B1B3F #4B3F1B #1B4B27
square
#1B274B #4B1B3F #4B3F1B #1B4B27
split-complementary
#1B274B #4B271B #3F4B1B
monochromatic
#080C17 #0B101E #1B274B #2B3E78 #3B56A5

Accessibility & contrast

On white

14.60
#1B274B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B274B
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B274B#FFFFFF#000000##FFFFFF
##1B274B1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172B4C
Deuteranopia (green-blind)
#11274A
Tritanopia (blue-blind)
#002F35
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b274b;
/* rgb */ color: rgb(27, 39, 75);
/* oklch */ color: oklch(28.3% 0.068 268.0);
Tailwind
colors: {
  custom: {
    50: '#5c607d',
    500: '#1b274b',
    950: '#000000',
  },
}
SCSS
$custom: #1b274b;
$custom-light: #5c607d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b274b",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 75
  },
  "hsl": {
    "h": 225,
    "s": 47.059,
    "l": 20
  },
  "oklch": {
    "l": 0.28259,
    "c": 0.06822,
    "h": 268
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#1B274B
secondary
#817141
accent
#B551D7
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040509
muted
#79797B

Preview Lab

Preview with #1B274B

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

Preview Lab → · Contrast checker → · Palette generator →

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