#1B2F8A#1B2F8A

#1B2F8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.153 H 267.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#1B2F8A
RGBrgb(27, 47, 138)
HSLhsl(229, 67%, 32%)
HSVhsv(229, 80%, 54%)
CMYKcmyk(80.4%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.00, 27.27, -52.70)
CIE-LCHlch(24.00, 59.34, 297.36°)
OKLaboklab(35.55% -0.0059 -0.1525)
OKLCHoklch(35.55% 0.153 267.8)
XYZxyz(6.0544, 4.1003, 24.5122)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F8A #8A761B
analogous
#1B678A #1B2F8A #3E1B8A
triadic
#1B2F8A #8A1B2F #2F8A1B
tetradic
#1B2F8A #8A1B67 #8A761B #1B8A3E
square
#1B2F8A #8A1B67 #8A761B #1B8A3E
split-complementary
#1B2F8A #8A3E1B #678A1B
monochromatic
#070C24 #111E57 #1B2F8A #2540BD #4560DB

Accessibility & contrast

On white

11.54
#1B2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1B2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F8A
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F8A#FFFFFF#000000##FFFFFF
##1B2F8A1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b2f8a;
/* rgb */ color: rgb(27, 47, 138);
/* oklch */ color: oklch(35.5% 0.153 267.8);
Tailwind
colors: {
  custom: {
    50: '#6b67ad',
    500: '#1b2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f8a;
$custom-light: #6b67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f8a",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 229.189,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35549,
    "c": 0.15261,
    "h": 267.8
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#1B2F8A
secondary
#BCA745
accent
#CB3EEA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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