#0F0F3A#0F0F3A

#0F0F3A is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.2% C 0.081 H 276.4°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#0F0F3A
RGBrgb(15, 15, 58)
HSLhsl(240, 59%, 14%)
HSVhsv(240, 74%, 23%)
CMYKcmyk(74.1%, 74.1%, 0%, 77.3%)
CIE-LABlab(6.76, 16.05, -27.72)
CIE-LCHlch(6.76, 32.03, 300.07°)
OKLaboklab(20.23% 0.009 -0.0802)
OKLCHoklch(20.23% 0.081 276.4)
XYZxyz(1.1313, 0.7486, 4.0870)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F3A #3A3A0F
analogous
#0F253A #0F0F3A #250F3A
triadic
#0F0F3A #3A0F0F #0F3A0F
tetradic
#0F0F3A #3A0F25 #3A3A0F #0F3A25
square
#0F0F3A #3A0F25 #3A3A0F #0F3A25
split-complementary
#0F0F3A #3A250F #253A0F
monochromatic
#060618 #060618 #0F0F3A #1C1C6B #28289B

Accessibility & contrast

On white

18.26
#0F0F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0F3A
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F3A#FFFFFF#000000##FFFFFF
##0F0F3A1.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#001A22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0f0f3a;
/* rgb */ color: rgb(15, 15, 58);
/* oklch */ color: oklch(20.2% 0.081 276.4);
Tailwind
colors: {
  custom: {
    50: '#544d71',
    500: '#0f0f3a',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f3a;
$custom-light: #544d71;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f3a",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 240,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20234,
    "c": 0.08075,
    "h": 276.4
  },
  "luminance": 0.00749
}

Semantic roles & 50–950 ramp

primary
#0F0F3A
secondary
#747430
accent
#E246E2
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #0F0F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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