#1B264C#1B264C

#1B264C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.071 H 269.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#1B264C
RGBrgb(27, 38, 76)
HSLhsl(227, 48%, 20%)
HSVhsv(227, 64%, 30%)
CMYKcmyk(64.5%, 50%, 0%, 70.2%)
CIE-LABlab(16.21, 8.85, -25.04)
CIE-LCHlch(16.21, 26.56, 289.46°)
OKLaboklab(28.09% -0.0009 -0.0714)
OKLCHoklch(28.09% 0.071 269.3)
XYZxyz(2.4492, 2.1408, 7.1202)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B264C #4C411B
analogous
#1B3E4C #1B264C #291B4C
triadic
#1B264C #4C1B26 #264C1B
tetradic
#1B264C #4C1B3E #4C411B #1B4C29
square
#1B264C #4C1B3E #4C411B #1B4C29
split-complementary
#1B264C #4C291B #3E4C1B
monochromatic
#080B17 #0B0F1F #1B264C #2B3D79 #3B53A6

Accessibility & contrast

On white

14.70
#1B264C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1B264C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B264C
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B264C#FFFFFF#000000##FFFFFF
##1B264C1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4D
Deuteranopia (green-blind)
#0E264B
Tritanopia (blue-blind)
#002E35
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b264c;
/* rgb */ color: rgb(27, 38, 76);
/* oklch */ color: oklch(28.1% 0.071 269.3);
Tailwind
colors: {
  custom: {
    50: '#5c5f7e',
    500: '#1b264c',
    950: '#000000',
  },
}
SCSS
$custom: #1b264c;
$custom-light: #5c5f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b264c",
  "rgb": {
    "r": 27,
    "g": 38,
    "b": 76
  },
  "hsl": {
    "h": 226.531,
    "s": 47.573,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28087,
    "c": 0.0714,
    "h": 269.3
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#1B264C
secondary
#827341
accent
#B951D7
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #1B264C

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

Preview Lab → · Contrast checker → · Palette generator →

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