#1B2283#1B2283

#1B2283 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.158 H 270.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#1B2283
RGBrgb(27, 34, 131)
HSLhsl(236, 66%, 31%)
HSVhsv(236, 79%, 51%)
CMYKcmyk(79.4%, 74%, 0%, 48.6%)
CIE-LABlab(20.10, 33.20, -54.72)
CIE-LCHlch(20.10, 64.00, 301.25°)
OKLaboklab(32.5% 0.0017 -0.1584)
OKLCHoklch(32.5% 0.158 270.6)
XYZxyz(5.1194, 3.0152, 21.7805)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2283 #837C1B
analogous
#1B5683 #1B2283 #481B83
triadic
#1B2283 #831B22 #22831B
tetradic
#1B2283 #831B56 #837C1B #1B8348
square
#1B2283 #831B56 #837C1B #1B8348
split-complementary
#1B2283 #83481B #56831B
monochromatic
#06081E #111550 #1B2283 #252FB6 #414BD8

Accessibility & contrast

On white

13.10
#1B2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1B2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2283
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2283#FFFFFF#000000##FFFFFF
##1B22831.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2283;
/* rgb */ color: rgb(27, 34, 131);
/* oklch */ color: oklch(32.5% 0.158 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b5ea8',
    500: '#1b2283',
    950: '#000000',
  },
}
SCSS
$custom: #1b2283;
$custom-light: #6b5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2283",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 235.962,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32504,
    "c": 0.15845,
    "h": 270.6
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#1B2283
secondary
#B6AF43
accent
#DD3FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #1B2283

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

Preview Lab → · Contrast checker → · Palette generator →

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