#1B308F#1B308F

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

Color values

HEX#1B308F
RGBrgb(27, 48, 143)
HSLhsl(229, 68%, 33%)
HSVhsv(229, 81%, 56%)
CMYKcmyk(81.1%, 66.4%, 0%, 43.9%)
CIE-LABlab(24.73, 28.54, -54.61)
CIE-LCHlch(24.73, 61.61, 297.59°)
OKLaboklab(36.23% -0.0067 -0.1581)
OKLCHoklch(36.23% 0.158 267.6)
XYZxyz(6.4651, 4.3293, 26.4762)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B308F #8F7A1B
analogous
#1B6A8F #1B308F #401B8F
triadic
#1B308F #8F1B30 #308F1B
tetradic
#1B308F #8F1B6A #8F7A1B #1B8F40
square
#1B308F #8F1B6A #8F7A1B #1B8F40
split-complementary
#1B308F #8F401B #6A8F1B
monochromatic
#080D28 #111F5C #1B308F #2541C2 #4863DC

Accessibility & contrast

On white

11.25
#1B308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1B308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B308F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B308F#FFFFFF#000000##FFFFFF
##1B308F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b308f;
/* rgb */ color: rgb(27, 48, 143);
/* oklch */ color: oklch(36.2% 0.158 267.6);
Tailwind
colors: {
  custom: {
    50: '#6d68b1',
    500: '#1b308f',
    950: '#000000',
  },
}
SCSS
$custom: #1b308f;
$custom-light: #6d68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b308f",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 229.138,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36231,
    "c": 0.15821,
    "h": 267.6
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#1B308F
secondary
#BEA948
accent
#CC3DEB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B308F

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

Preview Lab → · Contrast checker → · Palette generator →

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