#1B2F52#1B2F52

#1B2F52 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.068 H 260.9°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#1B2F52
RGBrgb(27, 47, 82)
HSLhsl(218, 50%, 21%)
HSVhsv(218, 67%, 32%)
CMYKcmyk(67.1%, 42.7%, 0%, 67.8%)
CIE-LABlab(19.54, 4.68, -23.80)
CIE-LCHlch(19.54, 24.25, 281.13°)
OKLaboklab(30.78% -0.0109 -0.0676)
OKLCHoklch(30.78% 0.068 260.9)
XYZxyz(2.9910, 2.8750, 8.3783)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F52 #523E1B
analogous
#1B4B52 #1B2F52 #231B52
triadic
#1B2F52 #521B2F #2F521B
tetradic
#1B2F52 #521B4B #523E1B #1B5223
square
#1B2F52 #521B4B #523E1B #1B5223
split-complementary
#1B2F52 #52231B #4B521B
monochromatic
#080D17 #0C1524 #1B2F52 #2A4980 #3964AE

Accessibility & contrast

On white

13.33
#1B2F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B2F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F52
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F52#FFFFFF#000000##FFFFFF
##1B2F521.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203253
Deuteranopia (green-blind)
#182D51
Tritanopia (blue-blind)
#00373C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b2f52;
/* rgb */ color: rgb(27, 47, 82);
/* oklch */ color: oklch(30.8% 0.068 260.9);
Tailwind
colors: {
  custom: {
    50: '#5d6783',
    500: '#1b2f52',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f52;
$custom-light: #5d6783;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f52",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 218.182,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30777,
    "c": 0.06849,
    "h": 260.9
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#1B2F52
secondary
#886E41
accent
#A74EDA
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1B2F52

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

Preview Lab → · Contrast checker → · Palette generator →

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