#0C154F#0C154F

#0C154F is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.106 H 269.2°. Best body text is #FFFFFF at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#0C154F
RGBrgb(12, 21, 79)
HSLhsl(232, 74%, 18%)
HSVhsv(232, 85%, 31%)
CMYKcmyk(84.8%, 73.4%, 0%, 69%)
CIE-LABlab(10.40, 20.23, -36.56)
CIE-LCHlch(10.40, 41.79, 298.96°)
OKLaboklab(23.57% -0.0016 -0.1058)
OKLCHoklch(23.57% 0.106 269.2)
XYZxyz(1.8306, 1.1788, 7.5267)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C154F #4F460C
analogous
#0C364F #0C154F #240C4F
triadic
#0C154F #4F0C15 #154F0C
tetradic
#0C154F #4F0C36 #4F460C #0C4F24
square
#0C154F #4F0C36 #4F460C #0C4F24
split-complementary
#0C154F #4F240C #364F0C
monochromatic
#04071B #04071B #0C154F #142384 #1C31B9

Accessibility & contrast

On white

16.99
#0C154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C154F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C154F
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C154F#FFFFFF#000000##FFFFFF
##0C154F1.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00194E
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c154f;
/* rgb */ color: rgb(12, 21, 79);
/* oklch */ color: oklch(23.6% 0.106 269.2);
Tailwind
colors: {
  custom: {
    50: '#585281',
    500: '#0c154f',
    950: '#000000',
  },
}
SCSS
$custom: #0c154f;
$custom-light: #585281;
$custom-dark: #000000;
JSON
{
  "hex": "#0c154f",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 231.94,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23569,
    "c": 0.10585,
    "h": 269.2
  },
  "luminance": 0.01179
}

Semantic roles & 50–950 ramp

primary
#0C154F
secondary
#8B7E2C
accent
#D738F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C154F

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

Preview Lab → · Contrast checker → · Palette generator →

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