#1B308B#1B308B

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

Color values

HEX#1B308B
RGBrgb(27, 48, 139)
HSLhsl(229, 67%, 33%)
HSVhsv(229, 81%, 55%)
CMYKcmyk(80.6%, 65.5%, 0%, 45.5%)
CIE-LABlab(24.35, 26.98, -52.74)
CIE-LCHlch(24.35, 59.24, 297.09°)
OKLaboklab(35.84% -0.0065 -0.1526)
OKLCHoklch(35.84% 0.153 267.5)
XYZxyz(6.1675, 4.2103, 24.9087)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B308B #8B761B
analogous
#1B688B #1B308B #3E1B8B
triadic
#1B308B #8B1B30 #308B1B
tetradic
#1B308B #8B1B68 #8B761B #1B8B3E
square
#1B308B #8B1B68 #8B761B #1B8B3E
split-complementary
#1B308B #8B3E1B #688B1B
monochromatic
#070D25 #111E58 #1B308B #2542BE #4561DB

Accessibility & contrast

On white

11.40
#1B308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B308B
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B308B#FFFFFF#000000##FFFFFF
##1B308B1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b308b;
/* rgb */ color: rgb(27, 48, 139);
/* oklch */ color: oklch(35.8% 0.153 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c68ae',
    500: '#1b308b',
    950: '#000000',
  },
}
SCSS
$custom: #1b308b;
$custom-light: #6c68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b308b",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 228.75,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35838,
    "c": 0.15276,
    "h": 267.5
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#1B308B
secondary
#BCA645
accent
#CA3DEA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B308B

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

Preview Lab → · Contrast checker → · Palette generator →

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