#0D123C#0D123C

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

Color values

HEX#0D123C
RGBrgb(13, 18, 60)
HSLhsl(234, 64%, 14%)
HSVhsv(234, 78%, 24%)
CMYKcmyk(78.3%, 70%, 0%, 76.5%)
CIE-LABlab(7.63, 14.51, -27.76)
CIE-LCHlch(7.63, 31.32, 297.60°)
OKLaboklab(20.94% 0.0031 -0.0801)
OKLCHoklch(20.94% 0.08 272.2)
XYZxyz(1.1976, 0.8443, 4.3739)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D123C #3C370D
analogous
#0D2A3C #0D123C #200D3C
triadic
#0D123C #3C0D12 #123C0D
tetradic
#0D123C #3C0D2A #3C370D #0D3C20
square
#0D123C #3C0D2A #3C370D #0D3C20
split-complementary
#0D123C #3C200D #2A3C0D
monochromatic
#050819 #050819 #0D123C #18216E #2330A1

Accessibility & contrast

On white

17.97
#0D123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D123C
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D123C#FFFFFF#000000##FFFFFF
##0D123C1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0d123c;
/* rgb */ color: rgb(13, 18, 60);
/* oklch */ color: oklch(20.9% 0.080 272.2);
Tailwind
colors: {
  custom: {
    50: '#534f72',
    500: '#0d123c',
    950: '#000000',
  },
}
SCSS
$custom: #0d123c;
$custom-light: #534f72;
$custom-dark: #000000;
JSON
{
  "hex": "#0d123c",
  "rgb": {
    "r": 13,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 233.617,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20938,
    "c": 0.08014,
    "h": 272.2
  },
  "luminance": 0.00844
}

Semantic roles & 50–950 ramp

primary
#0D123C
secondary
#78702D
accent
#D640E7
background
#F5F4F6
surface
#E8E7EC
border
#C4C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0D123C

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

Preview Lab → · Contrast checker → · Palette generator →

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