#1B2F85#1B2F85

#1B2F85 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.146 H 267.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#1B2F85
RGBrgb(27, 47, 133)
HSLhsl(229, 66%, 31%)
HSVhsv(229, 80%, 52%)
CMYKcmyk(79.7%, 64.7%, 0%, 47.8%)
CIE-LABlab(23.54, 25.31, -50.34)
CIE-LCHlch(23.54, 56.34, 296.69°)
OKLaboklab(35.06% -0.0058 -0.1456)
OKLCHoklch(35.06% 0.146 267.7)
XYZxyz(5.7007, 3.9589, 22.6494)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F85 #85711B
analogous
#1B6485 #1B2F85 #3C1B85
triadic
#1B2F85 #851B2F #2F851B
tetradic
#1B2F85 #851B64 #85711B #1B853C
square
#1B2F85 #851B64 #85711B #1B853C
split-complementary
#1B2F85 #853C1B #64851B
monochromatic
#060B1F #111D52 #1B2F85 #2541B8 #425ED9

Accessibility & contrast

On white

11.72
#1B2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1B2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F85
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F85#FFFFFF#000000##FFFFFF
##1B2F851.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b2f85;
/* rgb */ color: rgb(27, 47, 133);
/* oklch */ color: oklch(35.1% 0.146 267.7);
Tailwind
colors: {
  custom: {
    50: '#6a67a9',
    500: '#1b2f85',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f85;
$custom-light: #6a67a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f85",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 228.679,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35062,
    "c": 0.1457,
    "h": 267.7
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#1B2F85
secondary
#B8A244
accent
#C93FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1B2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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