#0B0F40#0B0F40

#0B0F40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.6% C 0.091 H 271.7°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#0B0F40
RGBrgb(11, 15, 64)
HSLhsl(235, 71%, 15%)
HSVhsv(235, 83%, 25%)
CMYKcmyk(82.8%, 76.6%, 0%, 74.9%)
CIE-LABlab(7.07, 18.07, -31.53)
CIE-LCHlch(7.07, 36.34, 299.81°)
OKLaboklab(20.6% 0.0028 -0.0914)
OKLCHoklch(20.6% 0.091 271.7)
XYZxyz(1.2339, 0.7828, 4.9356)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0F40 #403C0B
analogous
#0B2A40 #0B0F40 #220B40
triadic
#0B0F40 #400B0F #0F400B
tetradic
#0B0F40 #400B2A #403C0B #0B4022
square
#0B0F40 #400B2A #403C0B #0B4022
split-complementary
#0B0F40 #40220B #2A400B
monochromatic
#04061A #04061A #0B0F40 #141B74 #1D27A8

Accessibility & contrast

On white

18.16
#0B0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0B0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B0F40
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0F40#FFFFFF#000000##FFFFFF
##0B0F401.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001C25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0b0f40;
/* rgb */ color: rgb(11, 15, 64);
/* oklch */ color: oklch(20.6% 0.091 271.7);
Tailwind
colors: {
  custom: {
    50: '#544d75',
    500: '#0b0f40',
    950: '#000000',
  },
}
SCSS
$custom: #0b0f40;
$custom-light: #544d75;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0f40",
  "rgb": {
    "r": 11,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 235.472,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.206,
    "c": 0.09142,
    "h": 271.7
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#0B0F40
secondary
#7D762A
accent
#E03AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0B0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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