#0C2645#0C2645

#0C2645 is a dark, moderate cyan. Relative luminance 0.019; OKLCH L 26.7% C 0.066 H 254.7°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#0C2645
RGBrgb(12, 38, 69)
HSLhsl(213, 70%, 16%)
HSVhsv(213, 83%, 27%)
CMYKcmyk(82.6%, 44.9%, 0%, 72.9%)
CIE-LABlab(14.92, 2.86, -22.34)
CIE-LCHlch(14.92, 22.53, 277.30°)
OKLaboklab(26.72% -0.0175 -0.0638)
OKLCHoklch(26.72% 0.066 254.7)
XYZxyz(1.9185, 1.8938, 5.8935)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2645 #452B0C
analogous
#0C4245 #0C2645 #0F0C45
triadic
#0C2645 #450C26 #26450C
tetradic
#0C2645 #450C42 #452B0C #0C450F
square
#0C2645 #450C42 #452B0C #0C450F
split-complementary
#0C2645 #450F0C #42450C
monochromatic
#050E1A #050E1A #0C2645 #154379 #1E5FAD

Accessibility & contrast

On white

15.23
#0C2645 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0C2645 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2645
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2645#FFFFFF#000000##FFFFFF
##0C26451.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172846
Deuteranopia (green-blind)
#0E2344
Tritanopia (blue-blind)
#002D32
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c2645;
/* rgb */ color: rgb(12, 38, 69);
/* oklch */ color: oklch(26.7% 0.066 254.7);
Tailwind
colors: {
  custom: {
    50: '#545f79',
    500: '#0c2645',
    950: '#000000',
  },
}
SCSS
$custom: #0c2645;
$custom-light: #545f79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2645",
  "rgb": {
    "r": 12,
    "g": 38,
    "b": 69
  },
  "hsl": {
    "h": 212.632,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26716,
    "c": 0.06612,
    "h": 254.7
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#0C2645
secondary
#815A2C
accent
#9C3BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2645

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

Preview Lab → · Contrast checker → · Palette generator →

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