#1B307B#1B307B

#1B307B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.130 H 267.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#1B307B
RGBrgb(27, 48, 123)
HSLhsl(227, 64%, 29%)
HSVhsv(227, 78%, 48%)
CMYKcmyk(78%, 61%, 0%, 51.8%)
CIE-LABlab(22.92, 20.63, -45.05)
CIE-LCHlch(22.92, 49.54, 294.60°)
OKLaboklab(34.33% -0.0065 -0.13)
OKLCHoklch(34.33% 0.13 267.1)
XYZxyz(5.0829, 3.7764, 19.1961)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B307B #7B661B
analogous
#1B607B #1B307B #361B7B
triadic
#1B307B #7B1B30 #307B1B
tetradic
#1B307B #7B1B60 #7B661B #1B7B36
square
#1B307B #7B1B60 #7B661B #1B7B36
split-complementary
#1B307B #7B361B #607B1B
monochromatic
#060A19 #101C49 #1B307B #2644AD #3C5DD4

Accessibility & contrast

On white

11.96
#1B307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1B307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B307B
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B307B#FFFFFF#000000##FFFFFF
##1B307B1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b307b;
/* rgb */ color: rgb(27, 48, 123);
/* oklch */ color: oklch(34.3% 0.130 267.1);
Tailwind
colors: {
  custom: {
    50: '#6767a2',
    500: '#1b307b',
    950: '#000000',
  },
}
SCSS
$custom: #1b307b;
$custom-light: #6767a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b307b",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 226.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34328,
    "c": 0.13021,
    "h": 267.1
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#1B307B
secondary
#AF9743
accent
#C341E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B307B

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

Preview Lab → · Contrast checker → · Palette generator →

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