#1B276C#1B276C

#1B276C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.1% C 0.120 H 270.2°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1B276C
RGBrgb(27, 39, 108)
HSLhsl(231, 60%, 26%)
HSVhsv(231, 75%, 42%)
CMYKcmyk(75%, 63.9%, 0%, 57.6%)
CIE-LABlab(19.08, 20.99, -41.68)
CIE-LCHlch(19.08, 46.67, 296.73°)
OKLaboklab(31.06% 0.0005 -0.1203)
OKLCHoklch(31.06% 0.12 270.2)
XYZxyz(3.8834, 2.7664, 14.5138)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B276C #6C601B
analogous
#1B506C #1B276C #381B6C
triadic
#1B276C #6C1B27 #276C1B
tetradic
#1B276C #6C1B50 #6C601B #1B6C38
square
#1B276C #6C1B50 #6C601B #1B6C38
split-complementary
#1B276C #6C381B #506C1B
monochromatic
#060918 #0F153B #1B276C #27399D #354BCC

Accessibility & contrast

On white

13.52
#1B276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B276C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B276C
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B276C#FFFFFF#000000##FFFFFF
##1B276C1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b276c;
/* rgb */ color: rgb(27, 39, 108);
/* oklch */ color: oklch(31.1% 0.120 270.2);
Tailwind
colors: {
  custom: {
    50: '#646197',
    500: '#1b276c',
    950: '#000000',
  },
}
SCSS
$custom: #1b276c;
$custom-light: #646197;
$custom-dark: #000000;
JSON
{
  "hex": "#1b276c",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 231.111,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31063,
    "c": 0.12029,
    "h": 270.2
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#1B276C
secondary
#A19342
accent
#CC45E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1B276C

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

Preview Lab → · Contrast checker → · Palette generator →

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