#1B2F71#1B2F71

#1B2F71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.117 H 267.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#1B2F71
RGBrgb(27, 47, 113)
HSLhsl(226, 61%, 27%)
HSVhsv(226, 76%, 44%)
CMYKcmyk(76.1%, 58.4%, 0%, 55.7%)
CIE-LABlab(21.79, 17.29, -40.50)
CIE-LCHlch(21.79, 44.03, 293.12°)
OKLaboklab(33.22% -0.0061 -0.1167)
OKLCHoklch(33.22% 0.117 267)
XYZxyz(4.4481, 3.4578, 16.0526)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F71 #715D1B
analogous
#1B5A71 #1B2F71 #321B71
triadic
#1B2F71 #711B2F #2F711B
tetradic
#1B2F71 #711B5A #715D1B #1B7132
square
#1B2F71 #711B5A #715D1B #1B7132
split-complementary
#1B2F71 #71321B #5A711B
monochromatic
#060A19 #0F1A40 #1B2F71 #2744A2 #375BCF

Accessibility & contrast

On white

12.41
#1B2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F71
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F71#FFFFFF#000000##FFFFFF
##1B2F711.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2f71;
/* rgb */ color: rgb(27, 47, 113);
/* oklch */ color: oklch(33.2% 0.117 267.0);
Tailwind
colors: {
  custom: {
    50: '#65679a',
    500: '#1b2f71',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f71;
$custom-light: #65679a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f71",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 226.047,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.11686,
    "h": 267
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#1B2F71
secondary
#A68F42
accent
#BF43E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1B2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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