#0C2E57#0C2E57

#0C2E57 is a dark, moderate cyan. Relative luminance 0.027; OKLCH L 30.2% C 0.084 H 255.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#0C2E57
RGBrgb(12, 46, 87)
HSLhsl(213, 76%, 19%)
HSVhsv(213, 86%, 34%)
CMYKcmyk(86.2%, 47.1%, 0%, 65.9%)
CIE-LABlab(18.89, 4.94, -28.21)
CIE-LCHlch(18.89, 28.64, 279.93°)
OKLaboklab(30.2% -0.021 -0.0808)
OKLCHoklch(30.2% 0.084 255.4)
XYZxyz(2.8483, 2.7199, 9.3899)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2E57 #57350C
analogous
#0C5457 #0C2E57 #0F0C57
triadic
#0C2E57 #570C2E #2E570C
tetradic
#0C2E57 #570C54 #57350C #0C570F
square
#0C2E57 #570C54 #57350C #0C570F
split-complementary
#0C2E57 #570F0C #54570C
monochromatic
#040E1B #051221 #0C2E57 #134A8D #1B67C3

Accessibility & contrast

On white

13.60
#0C2E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#0C2E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2E57
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2E57#FFFFFF#000000##FFFFFF
##0C2E571.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193259
Deuteranopia (green-blind)
#0A2B56
Tritanopia (blue-blind)
#00383E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #0c2e57;
/* rgb */ color: rgb(12, 46, 87);
/* oklch */ color: oklch(30.2% 0.084 255.4);
Tailwind
colors: {
  custom: {
    50: '#596687',
    500: '#0c2e57',
    950: '#000000',
  },
}
SCSS
$custom: #0c2e57;
$custom-light: #596687;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2e57",
  "rgb": {
    "r": 12,
    "g": 46,
    "b": 87
  },
  "hsl": {
    "h": 212.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30199,
    "c": 0.08354,
    "h": 255.4
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#0C2E57
secondary
#92642D
accent
#9D35F2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #0C2E57

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

Preview Lab → · Contrast checker → · Palette generator →

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