#1B2F8D#1B2F8D

#1B2F8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.157 H 267.8°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#1B2F8D
RGBrgb(27, 47, 141)
HSLhsl(229, 68%, 33%)
HSVhsv(229, 81%, 55%)
CMYKcmyk(80.9%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.28, 28.44, -54.10)
CIE-LCHlch(24.28, 61.12, 297.73°)
OKLaboklab(35.85% -0.006 -0.1566)
OKLCHoklch(35.85% 0.157 267.8)
XYZxyz(6.2746, 4.1884, 25.6719)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F8D #8D791B
analogous
#1B688D #1B2F8D #401B8D
triadic
#1B2F8D #8D1B2F #2F8D1B
tetradic
#1B2F8D #8D1B68 #8D791B #1B8D40
square
#1B2F8D #8D1B68 #8D791B #1B8D40
split-complementary
#1B2F8D #8D401B #688D1B
monochromatic
#070D26 #111E5A #1B2F8D #2540C0 #4761DC

Accessibility & contrast

On white

11.43
#1B2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1B2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F8D
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F8D#FFFFFF#000000##FFFFFF
##1B2F8D1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b2f8d;
/* rgb */ color: rgb(27, 47, 141);
/* oklch */ color: oklch(35.8% 0.157 267.8);
Tailwind
colors: {
  custom: {
    50: '#6c67af',
    500: '#1b2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f8d;
$custom-light: #6c67af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f8d",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 229.474,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35845,
    "c": 0.15672,
    "h": 267.8
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#1B2F8D
secondary
#BDA846
accent
#CC3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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