#1B305F#1B305F

#1B305F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.0% C 0.088 H 264.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#1B305F
RGBrgb(27, 48, 95)
HSLhsl(221, 56%, 24%)
HSVhsv(221, 72%, 37%)
CMYKcmyk(71.6%, 49.5%, 0%, 62.7%)
CIE-LABlab(20.72, 9.22, -30.53)
CIE-LCHlch(20.72, 31.89, 286.80°)
OKLaboklab(31.97% -0.0092 -0.0874)
OKLCHoklch(31.97% 0.088 264)
XYZxyz(3.5738, 3.1728, 11.2483)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B305F #5F4A1B
analogous
#1B525F #1B305F #281B5F
triadic
#1B305F #5F1B30 #305F1B
tetradic
#1B305F #5F1B52 #5F4A1B #1B5F28
square
#1B305F #5F1B52 #5F4A1B #1B5F28
split-complementary
#1B305F #5F281B #525F1B
monochromatic
#070C18 #0D182F #1B305F #29488F #3660BE

Accessibility & contrast

On white

12.85
#1B305F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B305F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B305F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B305F#FFFFFF#000000##FFFFFF
##1B305F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183561
Deuteranopia (green-blind)
#0B2F5E
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b305f;
/* rgb */ color: rgb(27, 48, 95);
/* oklch */ color: oklch(32.0% 0.088 264.0);
Tailwind
colors: {
  custom: {
    50: '#60678d',
    500: '#1b305f',
    950: '#000000',
  },
}
SCSS
$custom: #1b305f;
$custom-light: #60678d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b305f",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 95
  },
  "hsl": {
    "h": 221.471,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31972,
    "c": 0.08784,
    "h": 264
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#1B305F
secondary
#957B41
accent
#B149DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B305F

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

Preview Lab → · Contrast checker → · Palette generator →

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