#0B1F4C#0B1F4C

#0B1F4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.087 H 263.4°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#0B1F4C
RGBrgb(11, 31, 76)
HSLhsl(222, 75%, 17%)
HSVhsv(222, 86%, 30%)
CMYKcmyk(85.5%, 59.2%, 0%, 70.2%)
CIE-LABlab(13.06, 11.18, -30.16)
CIE-LCHlch(13.06, 32.16, 290.35°)
OKLaboklab(25.45% -0.01 -0.0869)
OKLCHoklch(25.45% 0.088 263.4)
XYZxyz(1.9320, 1.5727, 7.0378)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B1F4C #4C380B
analogous
#0B404C #0B1F4C #170B4C
triadic
#0B1F4C #4C0B1F #1F4C0B
tetradic
#0B1F4C #4C0B40 #4C380B #0B4C17
square
#0B1F4C #4C0B40 #4C380B #0B4C17
split-complementary
#0B1F4C #4C170B #404C0B
monochromatic
#040B1B #040B1B #0B1F4C #133581 #1A4BB7

Accessibility & contrast

On white

15.97
#0B1F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0B1F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B1F4C
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B1F4C#FFFFFF#000000##FFFFFF
##0B1F4C1.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0b1f4c;
/* rgb */ color: rgb(11, 31, 76);
/* oklch */ color: oklch(25.4% 0.087 263.4);
Tailwind
colors: {
  custom: {
    50: '#565a7e',
    500: '#0b1f4c',
    950: '#000000',
  },
}
SCSS
$custom: #0b1f4c;
$custom-light: #565a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0b1f4c",
  "rgb": {
    "r": 11,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 221.538,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25448,
    "c": 0.0875,
    "h": 263.4
  },
  "luminance": 0.01573
}

Semantic roles & 50–950 ramp

primary
#0B1F4C
secondary
#886B2B
accent
#B836F1
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0B1F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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