#1B2272#1B2272

#1B2272 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.135 H 271.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#1B2272
RGBrgb(27, 34, 114)
HSLhsl(235, 62%, 28%)
HSVhsv(235, 76%, 45%)
CMYKcmyk(76.3%, 70.2%, 0%, 55.3%)
CIE-LABlab(18.33, 26.82, -46.80)
CIE-LCHlch(18.33, 53.94, 299.82°)
OKLaboklab(30.69% 0.0038 -0.1353)
OKLCHoklch(30.69% 0.135 271.6)
XYZxyz(4.0603, 2.5916, 16.2026)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2272 #726B1B
analogous
#1B4E72 #1B2272 #3F1B72
triadic
#1B2272 #721B22 #22721B
tetradic
#1B2272 #721B4E #726B1B #1B723F
square
#1B2272 #721B4E #726B1B #1B723F
split-complementary
#1B2272 #723F1B #4E721B
monochromatic
#060719 #0F1341 #1B2272 #2731A3 #3844D0

Accessibility & contrast

On white

13.83
#1B2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2272
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2272#FFFFFF#000000##FFFFFF
##1B22721.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b2272;
/* rgb */ color: rgb(27, 34, 114);
/* oklch */ color: oklch(30.7% 0.135 271.6);
Tailwind
colors: {
  custom: {
    50: '#665d9b',
    500: '#1b2272',
    950: '#000000',
  },
}
SCSS
$custom: #1b2272;
$custom-light: #665d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2272",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 235.172,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30685,
    "c": 0.13538,
    "h": 271.6
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#1B2272
secondary
#A79F42
accent
#D843E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2272

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

Preview Lab → · Contrast checker → · Palette generator →

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