#0F123A#0F123A

#0F123A is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.076 H 274.4°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#0F123A
RGBrgb(15, 18, 58)
HSLhsl(236, 59%, 14%)
HSVhsv(236, 74%, 23%)
CMYKcmyk(74.1%, 69%, 0%, 77.3%)
CIE-LABlab(7.58, 14.02, -26.39)
CIE-LCHlch(7.58, 29.88, 297.98°)
OKLaboklab(20.89% 0.0059 -0.076)
OKLCHoklch(20.89% 0.076 274.4)
XYZxyz(1.1768, 0.8396, 4.1022)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F123A #3A370F
analogous
#0F283A #0F123A #220F3A
triadic
#0F123A #3A0F12 #123A0F
tetradic
#0F123A #3A0F28 #3A370F #0F3A22
square
#0F123A #3A0F28 #3A370F #0F3A22
split-complementary
#0F123A #3A220F #283A0F
monochromatic
#060818 #060818 #0F123A #1C216B #28309B

Accessibility & contrast

On white

17.98
#0F123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F123A
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F123A#FFFFFF#000000##FFFFFF
##0F123A1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f123a;
/* rgb */ color: rgb(15, 18, 58);
/* oklch */ color: oklch(20.9% 0.076 274.4);
Tailwind
colors: {
  custom: {
    50: '#544f70',
    500: '#0f123a',
    950: '#000000',
  },
}
SCSS
$custom: #0f123a;
$custom-light: #544f70;
$custom-dark: #000000;
JSON
{
  "hex": "#0f123a",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 235.814,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20885,
    "c": 0.07622,
    "h": 274.4
  },
  "luminance": 0.0084
}

Semantic roles & 50–950 ramp

primary
#0F123A
secondary
#747030
accent
#D746E2
background
#F5F4F6
surface
#E8E7EC
border
#C4C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #0F123A

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

Preview Lab → · Contrast checker → · Palette generator →

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