#1B305A#1B305A

#1B305A is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.080 H 262.7°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#1B305A
RGBrgb(27, 48, 90)
HSLhsl(220, 54%, 23%)
HSVhsv(220, 70%, 35%)
CMYKcmyk(70%, 46.7%, 0%, 64.7%)
CIE-LABlab(20.38, 7.19, -27.78)
CIE-LCHlch(20.38, 28.69, 284.50°)
OKLaboklab(31.6% -0.0102 -0.0793)
OKLCHoklch(31.6% 0.08 262.7)
XYZxyz(3.3538, 3.0848, 10.0896)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B305A #5A451B
analogous
#1B4F5A #1B305A #251B5A
triadic
#1B305A #5A1B30 #305A1B
tetradic
#1B305A #5A1B4F #5A451B #1B5A25
square
#1B305A #5A1B4F #5A451B #1B5A25
split-complementary
#1B305A #5A251B #4F5A1B
monochromatic
#070D18 #0D172B #1B305A #294989 #3762B8

Accessibility & contrast

On white

12.99
#1B305A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1B305A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B305A
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B305A#FFFFFF#000000##FFFFFF
##1B305A1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C345C
Deuteranopia (green-blind)
#122E59
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b305a;
/* rgb */ color: rgb(27, 48, 90);
/* oklch */ color: oklch(31.6% 0.080 262.7);
Tailwind
colors: {
  custom: {
    50: '#5f6789',
    500: '#1b305a',
    950: '#000000',
  },
}
SCSS
$custom: #1b305a;
$custom-light: #5f6789;
$custom-dark: #000000;
JSON
{
  "hex": "#1b305a",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 90
  },
  "hsl": {
    "h": 220,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31598,
    "c": 0.07993,
    "h": 262.7
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#1B305A
secondary
#907641
accent
#AC4BDD
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #1B305A

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

Preview Lab → · Contrast checker → · Palette generator →

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