#1B2F77#1B2F77

#1B2F77 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.126 H 267.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#1B2F77
RGBrgb(27, 47, 119)
HSLhsl(227, 63%, 29%)
HSVhsv(227, 77%, 47%)
CMYKcmyk(77.3%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.29, 19.72, -43.52)
CIE-LCHlch(22.29, 47.78, 294.38°)
OKLaboklab(33.75% -0.0058 -0.1256)
OKLCHoklch(33.75% 0.126 267.3)
XYZxyz(4.7971, 3.5974, 17.8907)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F77 #77631B
analogous
#1B5D77 #1B2F77 #351B77
triadic
#1B2F77 #771B2F #2F771B
tetradic
#1B2F77 #771B5D #77631B #1B7735
square
#1B2F77 #771B5D #77631B #1B7735
split-complementary
#1B2F77 #77351B #5D771B
monochromatic
#060A19 #101B45 #1B2F77 #2643A9 #3A5BD2

Accessibility & contrast

On white

12.21
#1B2F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1B2F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F77
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F77#FFFFFF#000000##FFFFFF
##1B2F771.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2f77;
/* rgb */ color: rgb(27, 47, 119);
/* oklch */ color: oklch(33.8% 0.126 267.3);
Tailwind
colors: {
  custom: {
    50: '#66679f',
    500: '#1b2f77',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f77;
$custom-light: #66679f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f77",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 226.957,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.12573,
    "h": 267.3
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#1B2F77
secondary
#AB9542
accent
#C242E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1B2F77

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

Preview Lab → · Contrast checker → · Palette generator →

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