#0F163C#0F163C

#0F163C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.073 H 271.2°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#0F163C
RGBrgb(15, 22, 60)
HSLhsl(231, 60%, 15%)
HSVhsv(231, 75%, 24%)
CMYKcmyk(75%, 63.3%, 0%, 76.5%)
CIE-LABlab(9.00, 11.77, -25.52)
CIE-LCHlch(9.00, 28.10, 294.77°)
OKLaboklab(22.01% 0.0016 -0.0733)
OKLCHoklch(22.01% 0.073 271.2)
XYZxyz(1.2992, 1.0015, 4.3989)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F163C #3C350F
analogous
#0F2D3C #0F163C #1F0F3C
triadic
#0F163C #3C0F16 #163C0F
tetradic
#0F163C #3C0F2D #3C350F #0F3C1F
square
#0F163C #3C0F2D #3C350F #0F3C1F
split-complementary
#0F163C #3C1F0F #2D3C0F
monochromatic
#060918 #060918 #0F163C #1B286D #273A9E

Accessibility & contrast

On white

17.49
#0F163C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F163C
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F163C#FFFFFF#000000##FFFFFF
##0F163C1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#001F26
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f163c;
/* rgb */ color: rgb(15, 22, 60);
/* oklch */ color: oklch(22.0% 0.073 271.2);
Tailwind
colors: {
  custom: {
    50: '#545272',
    500: '#0f163c',
    950: '#000000',
  },
}
SCSS
$custom: #0f163c;
$custom-light: #545272;
$custom-dark: #000000;
JSON
{
  "hex": "#0f163c",
  "rgb": {
    "r": 15,
    "g": 22,
    "b": 60
  },
  "hsl": {
    "h": 230.667,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22006,
    "c": 0.07336,
    "h": 271.2
  },
  "luminance": 0.01002
}

Semantic roles & 50–950 ramp

primary
#0F163C
secondary
#766C30
accent
#CA45E3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0F163C

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

Preview Lab → · Contrast checker → · Palette generator →

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