#0B173A#0B173A

#0B173A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.070 H 266.4°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#0B173A
RGBrgb(11, 23, 58)
HSLhsl(225, 68%, 14%)
HSVhsv(225, 81%, 23%)
CMYKcmyk(81%, 60.3%, 0%, 77.3%)
CIE-LABlab(8.90, 9.35, -24.26)
CIE-LCHlch(8.90, 26.00, 291.07°)
OKLaboklab(21.81% -0.0044 -0.0697)
OKLCHoklch(21.81% 0.07 266.4)
XYZxyz(1.2079, 0.9893, 4.1295)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B173A #3A2E0B
analogous
#0B2E3A #0B173A #160B3A
triadic
#0B173A #3A0B17 #173A0B
tetradic
#0B173A #3A0B2E #3A2E0B #0B3A16
square
#0B173A #3A0B2E #3A2E0B #0B3A16
split-complementary
#0B173A #3A160B #2E3A0B
monochromatic
#050A1A #050A1A #0B173A #152B6D #1F40A1

Accessibility & contrast

On white

17.53
#0B173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0B173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B173A
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B173A#FFFFFF#000000##FFFFFF
##0B173A1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3B
Deuteranopia (green-blind)
#001739
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0b173a;
/* rgb */ color: rgb(11, 23, 58);
/* oklch */ color: oklch(21.8% 0.070 266.4);
Tailwind
colors: {
  custom: {
    50: '#515370',
    500: '#0b173a',
    950: '#000000',
  },
}
SCSS
$custom: #0b173a;
$custom-light: #515370;
$custom-dark: #000000;
JSON
{
  "hex": "#0b173a",
  "rgb": {
    "r": 11,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 224.681,
    "s": 68.116,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21805,
    "c": 0.06988,
    "h": 266.4
  },
  "luminance": 0.00989
}

Semantic roles & 50–950 ramp

primary
#0B173A
secondary
#77632A
accent
#BF3DEB
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0B173A

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

Preview Lab → · Contrast checker → · Palette generator →

#0B173A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva