#1B2255#1B2255

#1B2255 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.092 H 273.0°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#1B2255
RGBrgb(27, 34, 85)
HSLhsl(233, 52%, 22%)
HSVhsv(233, 68%, 33%)
CMYKcmyk(68.2%, 60%, 0%, 66.7%)
CIE-LABlab(15.66, 15.41, -32.03)
CIE-LCHlch(15.66, 35.55, 295.69°)
OKLaboklab(27.89% 0.0049 -0.092)
OKLCHoklch(27.89% 0.092 273)
XYZxyz(2.6632, 2.0327, 8.8446)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2255 #554E1B
analogous
#1B3F55 #1B2255 #311B55
triadic
#1B2255 #551B22 #22551B
tetradic
#1B2255 #551B3F #554E1B #1B5531
square
#1B2255 #551B3F #554E1B #1B5531
split-complementary
#1B2255 #55311B #3F551B
monochromatic
#070917 #0C0F27 #1B2255 #2A3583 #3947B2

Accessibility & contrast

On white

14.93
#1B2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1B2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2255
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2255#FFFFFF#000000##FFFFFF
##1B22551.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b2255;
/* rgb */ color: rgb(27, 34, 85);
/* oklch */ color: oklch(27.9% 0.092 273.0);
Tailwind
colors: {
  custom: {
    50: '#5f5c85',
    500: '#1b2255',
    950: '#000000',
  },
}
SCSS
$custom: #1b2255;
$custom-light: #5f5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2255",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 232.759,
    "s": 51.786,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27889,
    "c": 0.09214,
    "h": 273
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#1B2255
secondary
#8B8241
accent
#CA4DDB
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1B2255

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

Preview Lab → · Contrast checker → · Palette generator →

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