#1B308A#1B308A

#1B308A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.151 H 267.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#1B308A
RGBrgb(27, 48, 138)
HSLhsl(229, 67%, 32%)
HSVhsv(229, 80%, 54%)
CMYKcmyk(80.4%, 65.2%, 0%, 45.9%)
CIE-LABlab(24.26, 26.59, -52.27)
CIE-LCHlch(24.26, 58.65, 296.96°)
OKLaboklab(35.74% -0.0065 -0.1512)
OKLCHoklch(35.74% 0.151 267.5)
XYZxyz(6.0948, 4.1812, 24.5257)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B308A #8A751B
analogous
#1B678A #1B308A #3E1B8A
triadic
#1B308A #8A1B30 #308A1B
tetradic
#1B308A #8A1B67 #8A751B #1B8A3E
square
#1B308A #8A1B67 #8A751B #1B8A3E
split-complementary
#1B308A #8A3E1B #678A1B
monochromatic
#070C24 #111E57 #1B308A #2542BD #4561DB

Accessibility & contrast

On white

11.44
#1B308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1B308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B308A
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B308A#FFFFFF#000000##FFFFFF
##1B308A1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b308a;
/* rgb */ color: rgb(27, 48, 138);
/* oklch */ color: oklch(35.7% 0.151 267.5);
Tailwind
colors: {
  custom: {
    50: '#6b68ad',
    500: '#1b308a',
    950: '#000000',
  },
}
SCSS
$custom: #1b308a;
$custom-light: #6b68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b308a",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 228.649,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.15138,
    "h": 267.5
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#1B308A
secondary
#BCA545
accent
#CA3EEA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B308A

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

Preview Lab → · Contrast checker → · Palette generator →

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