#1B276F#1B276F

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

Color values

HEX#1B276F
RGBrgb(27, 39, 111)
HSLhsl(231, 61%, 27%)
HSVhsv(231, 76%, 44%)
CMYKcmyk(75.7%, 64.9%, 0%, 56.5%)
CIE-LABlab(19.36, 22.19, -43.18)
CIE-LCHlch(19.36, 48.54, 297.20°)
OKLaboklab(31.35% 0.0004 -0.1247)
OKLCHoklch(31.35% 0.125 270.2)
XYZxyz(4.0458, 2.8313, 15.3691)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B276F #6F631B
analogous
#1B516F #1B276F #391B6F
triadic
#1B276F #6F1B27 #276F1B
tetradic
#1B276F #6F1B51 #6F631B #1B6F39
square
#1B276F #6F1B51 #6F631B #1B6F39
split-complementary
#1B276F #6F391B #516F1B
monochromatic
#060919 #0F163E #1B276F #2738A0 #364CCE

Accessibility & contrast

On white

13.41
#1B276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B276F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B276F#FFFFFF#000000##FFFFFF
##1B276F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b276f;
/* rgb */ color: rgb(27, 39, 111);
/* oklch */ color: oklch(31.4% 0.125 270.2);
Tailwind
colors: {
  custom: {
    50: '#656199',
    500: '#1b276f',
    950: '#000000',
  },
}
SCSS
$custom: #1b276f;
$custom-light: #656199;
$custom-dark: #000000;
JSON
{
  "hex": "#1b276f",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 231.429,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3135,
    "c": 0.12468,
    "h": 270.2
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#1B276F
secondary
#A49642
accent
#CD44E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B276F

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

Preview Lab → · Contrast checker → · Palette generator →

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