#0B2151#0B2151

#0B2151 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.093 H 263.1°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#0B2151
RGBrgb(11, 33, 81)
HSLhsl(221, 76%, 18%)
HSVhsv(221, 86%, 32%)
CMYKcmyk(86.4%, 59.3%, 0%, 68.2%)
CIE-LABlab(14.13, 11.89, -31.84)
CIE-LCHlch(14.13, 33.99, 290.47°)
OKLaboklab(26.39% -0.0112 -0.0918)
OKLCHoklch(26.39% 0.093 263.1)
XYZxyz(2.1665, 1.7527, 8.0071)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B2151 #513B0B
analogous
#0B4451 #0B2151 #180B51
triadic
#0B2151 #510B21 #21510B
tetradic
#0B2151 #510B44 #513B0B #0B5118
square
#0B2151 #510B44 #513B0B #0B5118
split-complementary
#0B2151 #51180B #44510B
monochromatic
#040B1B #040B1B #0B2151 #123787 #1A4DBD

Accessibility & contrast

On white

15.55
#0B2151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0B2151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B2151
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B2151#FFFFFF#000000##FFFFFF
##0B21511.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0b2151;
/* rgb */ color: rgb(11, 33, 81);
/* oklch */ color: oklch(26.4% 0.093 263.1);
Tailwind
colors: {
  custom: {
    50: '#575b82',
    500: '#0b2151',
    950: '#000000',
  },
}
SCSS
$custom: #0b2151;
$custom-light: #575b82;
$custom-dark: #000000;
JSON
{
  "hex": "#0b2151",
  "rgb": {
    "r": 11,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 221.143,
    "s": 76.087,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26394,
    "c": 0.09251,
    "h": 263.1
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#0B2151
secondary
#8D6E2B
accent
#B735F3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0B2151

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

Preview Lab → · Contrast checker → · Palette generator →

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