#1B2F72#1B2F72

#1B2F72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.118 H 267.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1B2F72
RGBrgb(27, 47, 114)
HSLhsl(226, 62%, 28%)
HSVhsv(226, 76%, 45%)
CMYKcmyk(76.3%, 58.8%, 0%, 55.3%)
CIE-LABlab(21.87, 17.70, -41.01)
CIE-LCHlch(21.87, 44.66, 293.34°)
OKLaboklab(33.31% -0.006 -0.1182)
OKLCHoklch(33.31% 0.118 267.1)
XYZxyz(4.5047, 3.4805, 16.3507)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F72 #725E1B
analogous
#1B5A72 #1B2F72 #331B72
triadic
#1B2F72 #721B2F #2F721B
tetradic
#1B2F72 #721B5A #725E1B #1B7233
square
#1B2F72 #721B5A #725E1B #1B7233
split-complementary
#1B2F72 #72331B #5A721B
monochromatic
#060A19 #0F1B41 #1B2F72 #2743A3 #385BD0

Accessibility & contrast

On white

12.38
#1B2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B2F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F72
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F72#FFFFFF#000000##FFFFFF
##1B2F721.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2f72;
/* rgb */ color: rgb(27, 47, 114);
/* oklch */ color: oklch(33.3% 0.118 267.1);
Tailwind
colors: {
  custom: {
    50: '#65679b',
    500: '#1b2f72',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f72;
$custom-light: #65679b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f72",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 226.207,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33308,
    "c": 0.11835,
    "h": 267.1
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#1B2F72
secondary
#A79042
accent
#C043E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1B2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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