#0C154E#0C154E

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

Color values

HEX#0C154E
RGBrgb(12, 21, 78)
HSLhsl(232, 73%, 18%)
HSVhsv(232, 85%, 31%)
CMYKcmyk(84.6%, 73.1%, 0%, 69.4%)
CIE-LABlab(10.29, 19.81, -36.05)
CIE-LCHlch(10.29, 41.14, 298.79°)
OKLaboklab(23.46% -0.0015 -0.1043)
OKLCHoklch(23.46% 0.104 269.2)
XYZxyz(1.7945, 1.1644, 7.3364)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C154E #4E450C
analogous
#0C364E #0C154E #240C4E
triadic
#0C154E #4E0C15 #154E0C
tetradic
#0C154E #4E0C36 #4E450C #0C4E24
square
#0C154E #4E0C36 #4E450C #0C4E24
split-complementary
#0C154E #4E240C #364E0C
monochromatic
#04071B #04071B #0C154E #142383 #1C32B8

Accessibility & contrast

On white

17.03
#0C154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C154E
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C154E#FFFFFF#000000##FFFFFF
##0C154E1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#00194D
Tritanopia (blue-blind)
#00242F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c154e;
/* rgb */ color: rgb(12, 21, 78);
/* oklch */ color: oklch(23.5% 0.104 269.2);
Tailwind
colors: {
  custom: {
    50: '#585280',
    500: '#0c154e',
    950: '#000000',
  },
}
SCSS
$custom: #0c154e;
$custom-light: #585280;
$custom-dark: #000000;
JSON
{
  "hex": "#0c154e",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 231.818,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23457,
    "c": 0.10435,
    "h": 269.2
  },
  "luminance": 0.01165
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0C154E

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

Preview Lab → · Contrast checker → · Palette generator →

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