#1B2F87#1B2F87

#1B2F87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.148 H 267.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1B2F87
RGBrgb(27, 47, 135)
HSLhsl(229, 67%, 32%)
HSVhsv(229, 80%, 53%)
CMYKcmyk(80%, 65.2%, 0%, 47.1%)
CIE-LABlab(23.72, 26.10, -51.29)
CIE-LCHlch(23.72, 57.55, 296.97°)
OKLaboklab(35.26% -0.0058 -0.1484)
OKLCHoklch(35.26% 0.148 267.8)
XYZxyz(5.8402, 4.0146, 23.3841)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F87 #87731B
analogous
#1B6587 #1B2F87 #3D1B87
triadic
#1B2F87 #871B2F #2F871B
tetradic
#1B2F87 #871B65 #87731B #1B873D
square
#1B2F87 #871B65 #87731B #1B873D
split-complementary
#1B2F87 #873D1B #65871B
monochromatic
#070B21 #111D54 #1B2F87 #2541BA #435FD9

Accessibility & contrast

On white

11.65
#1B2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1B2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F87
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F87#FFFFFF#000000##FFFFFF
##1B2F871.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b2f87;
/* rgb */ color: rgb(27, 47, 135);
/* oklch */ color: oklch(35.3% 0.148 267.8);
Tailwind
colors: {
  custom: {
    50: '#6b67ab',
    500: '#1b2f87',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f87;
$custom-light: #6b67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f87",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 228.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35256,
    "c": 0.14848,
    "h": 267.8
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#1B2F87
secondary
#BAA444
accent
#CA3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1B2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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