#1B308D#1B308D

#1B308D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.155 H 267.6°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#1B308D
RGBrgb(27, 48, 141)
HSLhsl(229, 68%, 33%)
HSVhsv(229, 81%, 55%)
CMYKcmyk(80.9%, 66%, 0%, 44.7%)
CIE-LABlab(24.54, 27.76, -53.68)
CIE-LCHlch(24.54, 60.43, 297.35°)
OKLaboklab(36.03% -0.0066 -0.1553)
OKLCHoklch(36.03% 0.155 267.6)
XYZxyz(6.3150, 4.2693, 25.6854)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B308D #8D781B
analogous
#1B698D #1B308D #3F1B8D
triadic
#1B308D #8D1B30 #308D1B
tetradic
#1B308D #8D1B69 #8D781B #1B8D3F
square
#1B308D #8D1B69 #8D781B #1B8D3F
split-complementary
#1B308D #8D3F1B #698D1B
monochromatic
#070D26 #111F5A #1B308D #2541C0 #4762DC

Accessibility & contrast

On white

11.33
#1B308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1B308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B308D
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B308D#FFFFFF#000000##FFFFFF
##1B308D1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b308d;
/* rgb */ color: rgb(27, 48, 141);
/* oklch */ color: oklch(36.0% 0.155 267.6);
Tailwind
colors: {
  custom: {
    50: '#6c68af',
    500: '#1b308d',
    950: '#000000',
  },
}
SCSS
$custom: #1b308d;
$custom-light: #6c68af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b308d",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 228.947,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36034,
    "c": 0.15549,
    "h": 267.6
  },
  "luminance": 0.0427
}

Semantic roles & 50–950 ramp

primary
#1B308D
secondary
#BDA746
accent
#CB3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B308D

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

Preview Lab → · Contrast checker → · Palette generator →

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