#1B2F8C#1B2F8C

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

Color values

HEX#1B2F8C
RGBrgb(27, 47, 140)
HSLhsl(229, 68%, 33%)
HSVhsv(229, 81%, 55%)
CMYKcmyk(80.7%, 66.4%, 0%, 45.1%)
CIE-LABlab(24.19, 28.05, -53.63)
CIE-LCHlch(24.19, 60.53, 297.61°)
OKLaboklab(35.75% -0.006 -0.1552)
OKLCHoklch(35.75% 0.155 267.8)
XYZxyz(6.2005, 4.1588, 25.2818)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F8C #8C781B
analogous
#1B678C #1B2F8C #401B8C
triadic
#1B2F8C #8C1B2F #2F8C1B
tetradic
#1B2F8C #8C1B67 #8C781B #1B8C40
square
#1B2F8C #8C1B67 #8C781B #1B8C40
split-complementary
#1B2F8C #8C401B #678C1B
monochromatic
#070D25 #111E59 #1B2F8C #2540BF #4660DB

Accessibility & contrast

On white

11.46
#1B2F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1B2F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F8C
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F8C#FFFFFF#000000##FFFFFF
##1B2F8C1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b2f8c;
/* rgb */ color: rgb(27, 47, 140);
/* oklch */ color: oklch(35.7% 0.155 267.8);
Tailwind
colors: {
  custom: {
    50: '#6c67af',
    500: '#1b2f8c',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f8c;
$custom-light: #6c67af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f8c",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 140
  },
  "hsl": {
    "h": 229.381,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35746,
    "c": 0.15536,
    "h": 267.8
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B2F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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