#1B2F8E#1B2F8E

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

Color values

HEX#1B2F8E
RGBrgb(27, 47, 142)
HSLhsl(230, 68%, 33%)
HSVhsv(230, 81%, 56%)
CMYKcmyk(81%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.38, 28.82, -54.56)
CIE-LCHlch(24.38, 61.71, 297.85°)
OKLaboklab(35.94% -0.0061 -0.1579)
OKLCHoklch(35.94% 0.158 267.8)
XYZxyz(6.3493, 4.2183, 26.0655)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F8E #8E7A1B
analogous
#1B688E #1B2F8E #401B8E
triadic
#1B2F8E #8E1B2F #2F8E1B
tetradic
#1B2F8E #8E1B68 #8E7A1B #1B8E40
square
#1B2F8E #8E1B68 #8E7A1B #1B8E40
split-complementary
#1B2F8E #8E401B #688E1B
monochromatic
#070D27 #111E5B #1B2F8E #2540C1 #4761DC

Accessibility & contrast

On white

11.39
#1B2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2F8E
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F8E#FFFFFF#000000##FFFFFF
##1B2F8E1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b2f8e;
/* rgb */ color: rgb(27, 47, 142);
/* oklch */ color: oklch(35.9% 0.158 267.8);
Tailwind
colors: {
  custom: {
    50: '#6c67b0',
    500: '#1b2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f8e;
$custom-light: #6c67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f8e",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 229.565,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35944,
    "c": 0.15807,
    "h": 267.8
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#1B2F8E
secondary
#BEA947
accent
#CD3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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