#0C123E#0C123E

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

Color values

HEX#0C123E
RGBrgb(12, 18, 62)
HSLhsl(233, 68%, 15%)
HSVhsv(233, 81%, 24%)
CMYKcmyk(80.6%, 71%, 0%, 75.7%)
CIE-LABlab(7.75, 15.22, -28.99)
CIE-LCHlch(7.75, 32.74, 297.71°)
OKLaboklab(21.08% 0.0018 -0.0837)
OKLCHoklch(21.08% 0.084 271.2)
XYZxyz(1.2371, 0.8585, 4.6570)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C123E #3E380C
analogous
#0C2B3E #0C123E #1F0C3E
triadic
#0C123E #3E0C12 #123E0C
tetradic
#0C123E #3E0C2B #3E380C #0C3E1F
square
#0C123E #3E0C2B #3E380C #0C3E1F
split-complementary
#0C123E #3E1F0C #2B3E0C
monochromatic
#05071A #05071A #0C123E #162171 #2030A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C123E#FFFFFF#000000##FFFFFF
##0C123E1.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)
#00193F
Deuteranopia (green-blind)
#00153D
Tritanopia (blue-blind)
#001D25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c123e;
/* rgb */ color: rgb(12, 18, 62);
/* oklch */ color: oklch(21.1% 0.084 271.2);
Tailwind
colors: {
  custom: {
    50: '#534f74',
    500: '#0c123e',
    950: '#000000',
  },
}
SCSS
$custom: #0c123e;
$custom-light: #534f74;
$custom-dark: #000000;
JSON
{
  "hex": "#0c123e",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 232.8,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21079,
    "c": 0.08371,
    "h": 271.2
  },
  "luminance": 0.00859
}

Semantic roles & 50–950 ramp

primary
#0C123E
secondary
#7A712C
accent
#D63DEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C123E

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

Preview Lab → · Contrast checker → · Palette generator →

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