#0F1840#0F1840

#0F1840 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.077 H 269.7°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#0F1840
RGBrgb(15, 24, 64)
HSLhsl(229, 62%, 15%)
HSVhsv(229, 77%, 25%)
CMYKcmyk(76.6%, 62.5%, 0%, 74.9%)
CIE-LABlab(9.99, 11.94, -26.76)
CIE-LCHlch(9.99, 29.30, 294.04°)
OKLaboklab(22.86% -0.0003 -0.077)
OKLCHoklch(22.86% 0.077 269.7)
XYZxyz(1.4487, 1.1249, 4.9903)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1840 #40370F
analogous
#0F3040 #0F1840 #1E0F40
triadic
#0F1840 #400F18 #18400F
tetradic
#0F1840 #400F30 #40370F #0F401E
square
#0F1840 #400F30 #40370F #0F401E
split-complementary
#0F1840 #401E0F #30400F
monochromatic
#060919 #060919 #0F1840 #1B2B72 #263DA3

Accessibility & contrast

On white

17.14
#0F1840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0F1840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1840
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1840#FFFFFF#000000##FFFFFF
##0F18401.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f1840;
/* rgb */ color: rgb(15, 24, 64);
/* oklch */ color: oklch(22.9% 0.077 269.7);
Tailwind
colors: {
  custom: {
    50: '#555475',
    500: '#0f1840',
    950: '#000000',
  },
}
SCSS
$custom: #0f1840;
$custom-light: #555475;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1840",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 228.98,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22858,
    "c": 0.07697,
    "h": 269.7
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#0F1840
secondary
#7A6D30
accent
#C743E5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F1840

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

Preview Lab → · Contrast checker → · Palette generator →

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