#0C2A3F#0C2A3F

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

Color values

HEX#0C2A3F
RGBrgb(12, 42, 63)
HSLhsl(205, 68%, 15%)
HSVhsv(205, 81%, 25%)
CMYKcmyk(81%, 33.3%, 0%, 75.3%)
CIE-LABlab(15.97, -2.65, -16.54)
CIE-LCHlch(15.97, 16.75, 260.88°)
OKLaboklab(27.42% -0.0241 -0.0467)
OKLCHoklch(27.42% 0.053 242.8)
XYZxyz(1.8764, 2.0928, 5.0067)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A3F #3F210C
analogous
#0C3F3B #0C2A3F #0C113F
triadic
#0C2A3F #3F0C2A #2A3F0C
tetradic
#0C2A3F #3B0C3F #3F210C #113F0C
square
#0C2A3F #3B0C3F #3F210C #113F0C
split-complementary
#0C2A3F #3F0C11 #3F3B0C
monochromatic
#05111A #05111A #0C2A3F #164C72 #206FA6

Accessibility & contrast

On white

14.80
#0C2A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2A3F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A3F#FFFFFF#000000##FFFFFF
##0C2A3F1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A40
Deuteranopia (green-blind)
#19263F
Tritanopia (blue-blind)
#002F31
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2a3f;
/* rgb */ color: rgb(12, 42, 63);
/* oklch */ color: oklch(27.4% 0.053 242.8);
Tailwind
colors: {
  custom: {
    50: '#536374',
    500: '#0c2a3f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a3f;
$custom-light: #536374;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a3f",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 63
  },
  "hsl": {
    "h": 204.706,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.27416,
    "c": 0.05257,
    "h": 242.8
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#0C2A3F
secondary
#7B4C2C
accent
#853DEB
background
#F4F5F7
surface
#E7EAED
border
#C3C6C8
text
#030508
muted
#78797B

Preview Lab

Preview with #0C2A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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