#1B308E#1B308E

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

Color values

HEX#1B308E
RGBrgb(27, 48, 142)
HSLhsl(229, 68%, 33%)
HSVhsv(229, 81%, 56%)
CMYKcmyk(81%, 66.2%, 0%, 44.3%)
CIE-LABlab(24.64, 28.15, -54.14)
CIE-LCHlch(24.64, 61.02, 297.47°)
OKLaboklab(36.13% -0.0066 -0.1567)
OKLCHoklch(36.13% 0.157 267.6)
XYZxyz(6.3897, 4.2992, 26.0790)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B308E #8E791B
analogous
#1B6A8E #1B308E #3F1B8E
triadic
#1B308E #8E1B30 #308E1B
tetradic
#1B308E #8E1B6A #8E791B #1B8E3F
square
#1B308E #8E1B6A #8E791B #1B8E3F
split-complementary
#1B308E #8E3F1B #6A8E1B
monochromatic
#070D27 #111F5B #1B308E #2541C1 #4762DC

Accessibility & contrast

On white

11.29
#1B308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1B308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B308E
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B308E#FFFFFF#000000##FFFFFF
##1B308E1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b308e;
/* rgb */ color: rgb(27, 48, 142);
/* oklch */ color: oklch(36.1% 0.157 267.6);
Tailwind
colors: {
  custom: {
    50: '#6c68b0',
    500: '#1b308e',
    950: '#000000',
  },
}
SCSS
$custom: #1b308e;
$custom-light: #6c68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b308e",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 229.043,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36132,
    "c": 0.15685,
    "h": 267.6
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#1B308E
secondary
#BEA847
accent
#CB3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B308E

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

Preview Lab → · Contrast checker → · Palette generator →

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