#1B2F81#1B2F81

#1B2F81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.140 H 267.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#1B2F81
RGBrgb(27, 47, 129)
HSLhsl(228, 65%, 31%)
HSVhsv(228, 79%, 51%)
CMYKcmyk(79.1%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.17, 23.73, -48.42)
CIE-LCHlch(23.17, 53.92, 296.10°)
OKLaboklab(34.68% -0.0057 -0.14)
OKLCHoklch(34.68% 0.14 267.7)
XYZxyz(5.4296, 3.8504, 21.2217)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F81 #816D1B
analogous
#1B6281 #1B2F81 #3A1B81
triadic
#1B2F81 #811B2F #2F811B
tetradic
#1B2F81 #811B62 #816D1B #1B813A
square
#1B2F81 #811B62 #816D1B #1B813A
split-complementary
#1B2F81 #813A1B #62811B
monochromatic
#060A1C #101D4E #1B2F81 #2641B4 #3F5DD7

Accessibility & contrast

On white

11.86
#1B2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1B2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F81
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F81#FFFFFF#000000##FFFFFF
##1B2F811.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b2f81;
/* rgb */ color: rgb(27, 47, 129);
/* oklch */ color: oklch(34.7% 0.140 267.7);
Tailwind
colors: {
  custom: {
    50: '#6967a6',
    500: '#1b2f81',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f81;
$custom-light: #6967a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f81",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 228.235,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.1401,
    "h": 267.7
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#1B2F81
secondary
#B59E43
accent
#C73FE8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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