#0F123B#0F123B

#0F123B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.0% C 0.078 H 274.3°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#0F123B
RGBrgb(15, 18, 59)
HSLhsl(236, 59%, 15%)
HSVhsv(236, 75%, 23%)
CMYKcmyk(74.6%, 69.5%, 0%, 76.9%)
CIE-LABlab(7.68, 14.45, -26.96)
CIE-LCHlch(7.68, 30.59, 298.20°)
OKLaboklab(20.99% 0.0059 -0.0776)
OKLCHoklch(20.99% 0.078 274.3)
XYZxyz(1.2025, 0.8498, 4.2375)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F123B #3B380F
analogous
#0F283B #0F123B #220F3B
triadic
#0F123B #3B0F12 #123B0F
tetradic
#0F123B #3B0F28 #3B380F #0F3B22
square
#0F123B #3B0F28 #3B380F #0F3B22
split-complementary
#0F123B #3B220F #283B0F
monochromatic
#060718 #060718 #0F123B #1B216C #28309D

Accessibility & contrast

On white

17.95
#0F123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0F123B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F123B
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F123B#FFFFFF#000000##FFFFFF
##0F123B1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#00153A
Tritanopia (blue-blind)
#001C24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f123b;
/* rgb */ color: rgb(15, 18, 59);
/* oklch */ color: oklch(21.0% 0.078 274.3);
Tailwind
colors: {
  custom: {
    50: '#544f71',
    500: '#0f123b',
    950: '#000000',
  },
}
SCSS
$custom: #0f123b;
$custom-light: #544f71;
$custom-dark: #000000;
JSON
{
  "hex": "#0f123b",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 235.909,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20985,
    "c": 0.07787,
    "h": 274.3
  },
  "luminance": 0.0085
}

Semantic roles & 50–950 ramp

primary
#0F123B
secondary
#757130
accent
#D845E3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0F123B

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

Preview Lab → · Contrast checker → · Palette generator →

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