#1B307E#1B307E

#1B307E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.135 H 267.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#1B307E
RGBrgb(27, 48, 126)
HSLhsl(227, 65%, 30%)
HSVhsv(227, 79%, 49%)
CMYKcmyk(78.6%, 61.9%, 0%, 50.6%)
CIE-LABlab(23.18, 21.83, -46.52)
CIE-LCHlch(23.18, 51.39, 295.14°)
OKLaboklab(34.6% -0.0064 -0.1344)
OKLCHoklch(34.6% 0.135 267.3)
XYZxyz(5.2735, 3.8527, 20.2003)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B307E #7E691B
analogous
#1B617E #1B307E #381B7E
triadic
#1B307E #7E1B30 #307E1B
tetradic
#1B307E #7E1B61 #7E691B #1B7E38
square
#1B307E #7E1B61 #7E691B #1B7E38
split-complementary
#1B307E #7E381B #617E1B
monochromatic
#050A19 #101D4C #1B307E #2643B0 #3E5ED6

Accessibility & contrast

On white

11.86
#1B307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1B307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B307E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B307E#FFFFFF#000000##FFFFFF
##1B307E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b307e;
/* rgb */ color: rgb(27, 48, 126);
/* oklch */ color: oklch(34.6% 0.135 267.3);
Tailwind
colors: {
  custom: {
    50: '#6868a4',
    500: '#1b307e',
    950: '#000000',
  },
}
SCSS
$custom: #1b307e;
$custom-light: #6868a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b307e",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 227.273,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.34603,
    "c": 0.13453,
    "h": 267.3
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#1B307E
secondary
#B29A43
accent
#C440E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B307E

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

Preview Lab → · Contrast checker → · Palette generator →

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