#0C213E#0C213E

#0C213E is a very dark, moderate cyan. Relative luminance 0.015; OKLCH L 24.8% C 0.062 H 257.1°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#0C213E
RGBrgb(12, 33, 62)
HSLhsl(215, 68%, 15%)
HSVhsv(215, 81%, 24%)
CMYKcmyk(80.6%, 46.8%, 0%, 75.7%)
CIE-LABlab(12.69, 3.51, -21.01)
CIE-LCHlch(12.69, 21.31, 279.50°)
OKLaboklab(24.83% -0.0138 -0.06)
OKLCHoklch(24.83% 0.062 257.1)
XYZxyz(1.5647, 1.5135, 4.7662)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C213E #3E290C
analogous
#0C3A3E #0C213E #100C3E
triadic
#0C213E #3E0C21 #213E0C
tetradic
#0C213E #3E0C3A #3E290C #0C3E10
square
#0C213E #3E0C3A #3E290C #0C3E10
split-complementary
#0C213E #3E100C #3A3E0C
monochromatic
#050E1A #050E1A #0C213E #163C71 #2058A5

Accessibility & contrast

On white

16.12
#0C213E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C213E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C213E
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C213E#FFFFFF#000000##FFFFFF
##0C213E1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233F
Deuteranopia (green-blind)
#0B1F3D
Tritanopia (blue-blind)
#00282C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c213e;
/* rgb */ color: rgb(12, 33, 62);
/* oklch */ color: oklch(24.8% 0.062 257.1);
Tailwind
colors: {
  custom: {
    50: '#525b73',
    500: '#0c213e',
    950: '#000000',
  },
}
SCSS
$custom: #0c213e;
$custom-light: #525b73;
$custom-dark: #000000;
JSON
{
  "hex": "#0c213e",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 62
  },
  "hsl": {
    "h": 214.8,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24829,
    "c": 0.06153,
    "h": 257.1
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#0C213E
secondary
#7A592C
accent
#A23DEA
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C213E

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

Preview Lab → · Contrast checker → · Palette generator →

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