#0F122F#0F122F

#0F122F is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.8% C 0.057 H 275.4°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#0F122F
RGBrgb(15, 18, 47)
HSLhsl(234, 52%, 12%)
HSVhsv(234, 68%, 18%)
CMYKcmyk(68.1%, 61.7%, 0%, 81.6%)
CIE-LABlab(6.68, 9.05, -19.81)
CIE-LCHlch(6.68, 21.78, 294.54°)
OKLaboklab(19.84% 0.0054 -0.057)
OKLCHoklch(19.84% 0.057 275.4)
XYZxyz(0.9262, 0.7393, 2.7827)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F122F #2F2C0F
analogous
#0F222F #0F122F #1C0F2F
triadic
#0F122F #2F0F12 #122F0F
tetradic
#0F122F #2F0F22 #2F2C0F #0F2F1C
square
#0F122F #2F0F22 #2F2C0F #0F2F1C
split-complementary
#0F122F #2F1C0F #222F0F
monochromatic
#070917 #070917 #0F122F #1E245D #2D368C

Accessibility & contrast

On white

18.30
#0F122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0F122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F122F
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F122F#FFFFFF#000000##FFFFFF
##0F122F1.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041630
Deuteranopia (green-blind)
#02142E
Tritanopia (blue-blind)
#01191E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0f122f;
/* rgb */ color: rgb(15, 18, 47);
/* oklch */ color: oklch(19.8% 0.057 275.4);
Tailwind
colors: {
  custom: {
    50: '#504f68',
    500: '#0f122f',
    950: '#000000',
  },
}
SCSS
$custom: #0f122f;
$custom-light: #504f68;
$custom-dark: #000000;
JSON
{
  "hex": "#0f122f",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 234.375,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19844,
    "c": 0.05728,
    "h": 275.4
  },
  "luminance": 0.00739
}

Semantic roles & 50–950 ramp

primary
#0F122F
secondary
#696331
accent
#CE4DDB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0F122F

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

Preview Lab → · Contrast checker → · Palette generator →

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