#1B2D71#1B2D71

#1B2D71 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.8% C 0.120 H 267.9°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#1B2D71
RGBrgb(27, 45, 113)
HSLhsl(227, 61%, 27%)
HSVhsv(227, 76%, 44%)
CMYKcmyk(76.1%, 60.2%, 0%, 55.7%)
CIE-LABlab(21.21, 18.72, -41.44)
CIE-LCHlch(21.21, 45.47, 294.31°)
OKLaboklab(32.79% -0.0044 -0.1195)
OKLCHoklch(32.79% 0.12 267.9)
XYZxyz(4.3700, 3.3016, 16.0265)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D71 #715F1B
analogous
#1B5871 #1B2D71 #341B71
triadic
#1B2D71 #711B2D #2D711B
tetradic
#1B2D71 #711B58 #715F1B #1B7134
square
#1B2D71 #711B58 #715F1B #1B7134
split-complementary
#1B2D71 #71341B #58711B
monochromatic
#060A19 #0F1940 #1B2D71 #2741A2 #3757CF

Accessibility & contrast

On white

12.65
#1B2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D71
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D71#FFFFFF#000000##FFFFFF
##1B2D711.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b2d71;
/* rgb */ color: rgb(27, 45, 113);
/* oklch */ color: oklch(32.8% 0.120 267.9);
Tailwind
colors: {
  custom: {
    50: '#65659a',
    500: '#1b2d71',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d71;
$custom-light: #65659a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d71",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 227.442,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32786,
    "c": 0.11958,
    "h": 267.9
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#1B2D71
secondary
#A69142
accent
#C343E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1B2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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