#0F1940#0F1940

#0F1940 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.1% C 0.075 H 268.9°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#0F1940
RGBrgb(15, 25, 64)
HSLhsl(228, 62%, 15%)
HSVhsv(228, 77%, 25%)
CMYKcmyk(76.6%, 60.9%, 0%, 74.9%)
CIE-LABlab(10.31, 11.16, -26.24)
CIE-LCHlch(10.31, 28.52, 293.04°)
OKLaboklab(23.1% -0.0014 -0.0754)
OKLCHoklch(23.1% 0.075 268.9)
XYZxyz(1.4697, 1.1668, 4.9973)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1940 #40360F
analogous
#0F3140 #0F1940 #1D0F40
triadic
#0F1940 #400F19 #19400F
tetradic
#0F1940 #400F31 #40360F #0F401D
square
#0F1940 #400F31 #40360F #0F401D
split-complementary
#0F1940 #401D0F #31400F
monochromatic
#060A19 #060A19 #0F1940 #1B2C72 #2640A3

Accessibility & contrast

On white

17.03
#0F1940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0F1940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1940
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1940#FFFFFF#000000##FFFFFF
##0F19401.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0f1940;
/* rgb */ color: rgb(15, 25, 64);
/* oklch */ color: oklch(23.1% 0.075 268.9);
Tailwind
colors: {
  custom: {
    50: '#555575',
    500: '#0f1940',
    950: '#000000',
  },
}
SCSS
$custom: #0f1940;
$custom-light: #555575;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1940",
  "rgb": {
    "r": 15,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 227.755,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23098,
    "c": 0.07544,
    "h": 268.9
  },
  "luminance": 0.01167
}

Semantic roles & 50–950 ramp

primary
#0F1940
secondary
#7A6B30
accent
#C443E5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0F1940

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

Preview Lab → · Contrast checker → · Palette generator →

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