#0F123C#0F123C

#0F123C is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.080 H 274.2°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#0F123C
RGBrgb(15, 18, 60)
HSLhsl(236, 60%, 15%)
HSVhsv(236, 75%, 24%)
CMYKcmyk(75%, 70%, 0%, 76.5%)
CIE-LABlab(7.77, 14.88, -27.52)
CIE-LCHlch(7.77, 31.29, 298.40°)
OKLaboklab(21.09% 0.0058 -0.0793)
OKLCHoklch(21.09% 0.08 274.2)
XYZxyz(1.2286, 0.8603, 4.3754)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F123C #3C390F
analogous
#0F293C #0F123C #230F3C
triadic
#0F123C #3C0F12 #123C0F
tetradic
#0F123C #3C0F29 #3C390F #0F3C23
square
#0F123C #3C0F29 #3C390F #0F3C23
split-complementary
#0F123C #3C230F #293C0F
monochromatic
#060718 #060718 #0F123C #1B216D #272F9E

Accessibility & contrast

On white

17.92
#0F123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F123C
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F123C#FFFFFF#000000##FFFFFF
##0F123C1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f123c;
/* rgb */ color: rgb(15, 18, 60);
/* oklch */ color: oklch(21.1% 0.080 274.2);
Tailwind
colors: {
  custom: {
    50: '#544f72',
    500: '#0f123c',
    950: '#000000',
  },
}
SCSS
$custom: #0f123c;
$custom-light: #544f72;
$custom-dark: #000000;
JSON
{
  "hex": "#0f123c",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 236,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21087,
    "c": 0.0795,
    "h": 274.2
  },
  "luminance": 0.0086
}

Semantic roles & 50–950 ramp

primary
#0F123C
secondary
#767230
accent
#D945E3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0F123C

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

Preview Lab → · Contrast checker → · Palette generator →

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