#0C2A4F#0C2A4F

#0C2A4F is a dark, moderate cyan. Relative luminance 0.023; OKLCH L 28.5% C 0.077 H 255.6°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#0C2A4F
RGBrgb(12, 42, 79)
HSLhsl(213, 74%, 18%)
HSVhsv(213, 85%, 31%)
CMYKcmyk(84.8%, 46.8%, 0%, 69%)
CIE-LABlab(16.98, 4.33, -25.89)
CIE-LCHlch(16.98, 26.25, 279.50°)
OKLaboklab(28.54% -0.0191 -0.0741)
OKLCHoklch(28.54% 0.077 255.6)
XYZxyz(2.3903, 2.2983, 7.7133)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A4F #4F310C
analogous
#0C4B4F #0C2A4F #0F0C4F
triadic
#0C2A4F #4F0C2A #2A4F0C
tetradic
#0C2A4F #4F0C4B #4F310C #0C4F0F
square
#0C2A4F #4F0C4B #4F310C #0C4F0F
split-complementary
#0C2A4F #4F0F0C #4B4F0C
monochromatic
#040E1B #040E1B #0C2A4F #144684 #1C62B9

Accessibility & contrast

On white

14.39
#0C2A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#0C2A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A4F
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A4F#FFFFFF#000000##FFFFFF
##0C2A4F1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D50
Deuteranopia (green-blind)
#0B274E
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2a4f;
/* rgb */ color: rgb(12, 42, 79);
/* oklch */ color: oklch(28.5% 0.077 255.6);
Tailwind
colors: {
  custom: {
    50: '#576380',
    500: '#0c2a4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a4f;
$custom-light: #576380;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a4f",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 213.134,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28541,
    "c": 0.07652,
    "h": 255.6
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#0C2A4F
secondary
#8B602C
accent
#9E38F0
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#03050A
muted
#78797C

Preview Lab

Preview with #0C2A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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