#1B2B74#1B2B74

#1B2B74 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.127 H 268.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#1B2B74
RGBrgb(27, 43, 116)
HSLhsl(229, 62%, 28%)
HSVhsv(229, 77%, 45%)
CMYKcmyk(76.7%, 62.9%, 0%, 54.5%)
CIE-LABlab(20.91, 21.35, -43.86)
CIE-LCHlch(20.91, 48.78, 295.96°)
OKLaboklab(32.64% -0.0028 -0.1266)
OKLCHoklch(32.64% 0.127 268.8)
XYZxyz(4.4672, 3.2212, 16.9059)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2B74 #74641B
analogous
#1B5874 #1B2B74 #371B74
triadic
#1B2B74 #741B2B #2B741B
tetradic
#1B2B74 #741B58 #74641B #1B7437
square
#1B2B74 #741B58 #74641B #1B7437
split-complementary
#1B2B74 #74371B #58741B
monochromatic
#060919 #0F1942 #1B2B74 #273DA6 #3954D1

Accessibility & contrast

On white

12.77
#1B2B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B2B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2B74
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2B74#FFFFFF#000000##FFFFFF
##1B2B741.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b2b74;
/* rgb */ color: rgb(27, 43, 116);
/* oklch */ color: oklch(32.6% 0.127 268.8);
Tailwind
colors: {
  custom: {
    50: '#66649d',
    500: '#1b2b74',
    950: '#000000',
  },
}
SCSS
$custom: #1b2b74;
$custom-light: #66649d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2b74",
  "rgb": {
    "r": 27,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 229.213,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32641,
    "c": 0.12667,
    "h": 268.8
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#1B2B74
secondary
#A99642
accent
#C842E5
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1B2B74

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

Preview Lab → · Contrast checker → · Palette generator →

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