#0C2A3E#0C2A3E

#0C2A3E is a dark, muted cyan. Relative luminance 0.021; OKLCH L 27.4% C 0.051 H 241.5°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#0C2A3E
RGBrgb(12, 42, 62)
HSLhsl(204, 68%, 15%)
HSVhsv(204, 81%, 24%)
CMYKcmyk(80.6%, 32.3%, 0%, 75.7%)
CIE-LABlab(15.91, -3.08, -15.93)
CIE-LCHlch(15.91, 16.23, 259.06°)
OKLaboklab(27.35% -0.0245 -0.045)
OKLCHoklch(27.35% 0.051 241.5)
XYZxyz(1.8487, 2.0817, 4.8609)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A3E #3E200C
analogous
#0C3E39 #0C2A3E #0C113E
triadic
#0C2A3E #3E0C2A #2A3E0C
tetradic
#0C2A3E #390C3E #3E200C #113E0C
square
#0C2A3E #390C3E #3E200C #113E0C
split-complementary
#0C2A3E #3E0C11 #3E390C
monochromatic
#05111A #05111A #0C2A3E #164D71 #206FA5

Accessibility & contrast

On white

14.83
#0C2A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0C2A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A3E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A3E#FFFFFF#000000##FFFFFF
##0C2A3E1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212A3F
Deuteranopia (green-blind)
#1A253E
Tritanopia (blue-blind)
#002F31
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2a3e;
/* rgb */ color: rgb(12, 42, 62);
/* oklch */ color: oklch(27.4% 0.051 241.5);
Tailwind
colors: {
  custom: {
    50: '#526373',
    500: '#0c2a3e',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a3e;
$custom-light: #526373;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a3e",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 62
  },
  "hsl": {
    "h": 204,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.27353,
    "c": 0.0512,
    "h": 241.5
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#0C2A3E
secondary
#7A4B2C
accent
#833DEA
background
#F4F5F7
surface
#E7EAED
border
#C3C6C8
text
#030508
muted
#78797B

Preview Lab

Preview with #0C2A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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