#0B2152#0B2152

#0B2152 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.094 H 263.2°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#0B2152
RGBrgb(11, 33, 82)
HSLhsl(221, 76%, 18%)
HSVhsv(221, 87%, 32%)
CMYKcmyk(86.6%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.22, 12.34, -32.38)
CIE-LCHlch(14.22, 34.65, 290.86°)
OKLaboklab(26.49% -0.0111 -0.0934)
OKLCHoklch(26.49% 0.094 263.2)
XYZxyz(2.2043, 1.7678, 8.2060)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B2152 #523C0B
analogous
#0B4452 #0B2152 #180B52
triadic
#0B2152 #520B21 #21520B
tetradic
#0B2152 #520B44 #523C0B #0B5218
square
#0B2152 #520B44 #523C0B #0B5218
split-complementary
#0B2152 #52180B #44520B
monochromatic
#040B1B #040B1C #0B2152 #123788 #194CBE

Accessibility & contrast

On white

15.51
#0B2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B2152
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B2152#FFFFFF#000000##FFFFFF
##0B21521.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0b2152;
/* rgb */ color: rgb(11, 33, 82);
/* oklch */ color: oklch(26.5% 0.094 263.2);
Tailwind
colors: {
  custom: {
    50: '#585b83',
    500: '#0b2152',
    950: '#000000',
  },
}
SCSS
$custom: #0b2152;
$custom-light: #585b83;
$custom-dark: #000000;
JSON
{
  "hex": "#0b2152",
  "rgb": {
    "r": 11,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 221.408,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26486,
    "c": 0.09407,
    "h": 263.2
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#0B2152
secondary
#8E6F2B
accent
#B835F3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0B2152

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

Preview Lab → · Contrast checker → · Palette generator →

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