#0F123E#0F123E

#0F123E is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.083 H 274.0°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#0F123E
RGBrgb(15, 18, 62)
HSLhsl(236, 61%, 15%)
HSVhsv(236, 76%, 24%)
CMYKcmyk(75.8%, 71%, 0%, 75.7%)
CIE-LABlab(7.97, 15.73, -28.63)
CIE-LCHlch(7.97, 32.67, 298.79°)
OKLaboklab(21.29% 0.0058 -0.0825)
OKLCHoklch(21.29% 0.083 274)
XYZxyz(1.2825, 0.8819, 4.6591)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F123E #3E3B0F
analogous
#0F2A3E #0F123E #230F3E
triadic
#0F123E #3E0F12 #123E0F
tetradic
#0F123E #3E0F2A #3E3B0F #0F3E23
square
#0F123E #3E0F2A #3E3B0F #0F3E23
split-complementary
#0F123E #3E230F #2A3E0F
monochromatic
#060719 #060719 #0F123E #1B206F #272FA1

Accessibility & contrast

On white

17.85
#0F123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0F123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F123E
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F123E#FFFFFF#000000##FFFFFF
##0F123E1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3F
Deuteranopia (green-blind)
#00153D
Tritanopia (blue-blind)
#001D25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f123e;
/* rgb */ color: rgb(15, 18, 62);
/* oklch */ color: oklch(21.3% 0.083 274.0);
Tailwind
colors: {
  custom: {
    50: '#554f74',
    500: '#0f123e',
    950: '#000000',
  },
}
SCSS
$custom: #0f123e;
$custom-light: #554f74;
$custom-dark: #000000;
JSON
{
  "hex": "#0f123e",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 236.17,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21293,
    "c": 0.08275,
    "h": 274
  },
  "luminance": 0.00882
}

Semantic roles & 50–950 ramp

primary
#0F123E
secondary
#787430
accent
#DA44E4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F123E

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

Preview Lab → · Contrast checker → · Palette generator →

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