#0C2B4F#0C2B4F

#0C2B4F is a dark, moderate cyan. Relative luminance 0.024; OKLCH L 28.8% C 0.075 H 254.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#0C2B4F
RGBrgb(12, 43, 79)
HSLhsl(212, 74%, 18%)
HSVhsv(212, 85%, 31%)
CMYKcmyk(84.8%, 45.6%, 0%, 69%)
CIE-LABlab(17.32, 3.60, -25.35)
CIE-LCHlch(17.32, 25.60, 278.08°)
OKLaboklab(28.8% -0.0201 -0.0725)
OKLCHoklch(28.8% 0.075 254.5)
XYZxyz(2.4263, 2.3701, 7.7252)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2B4F #4F300C
analogous
#0C4C4F #0C2B4F #0F0C4F
triadic
#0C2B4F #4F0C2B #2B4F0C
tetradic
#0C2B4F #4F0C4C #4F300C #0C4F0F
square
#0C2B4F #4F0C4C #4F300C #0C4F0F
split-complementary
#0C2B4F #4F0F0C #4C4F0C
monochromatic
#040E1B #040E1B #0C2B4F #144884 #1C65B9

Accessibility & contrast

On white

14.25
#0C2B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0C2B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2B4F
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2B4F#FFFFFF#000000##FFFFFF
##0C2B4F1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E50
Deuteranopia (green-blind)
#0E284E
Tritanopia (blue-blind)
#003439
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c2b4f;
/* rgb */ color: rgb(12, 43, 79);
/* oklch */ color: oklch(28.8% 0.075 254.5);
Tailwind
colors: {
  custom: {
    50: '#576380',
    500: '#0c2b4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2b4f;
$custom-light: #576380;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2b4f",
  "rgb": {
    "r": 12,
    "g": 43,
    "b": 79
  },
  "hsl": {
    "h": 212.239,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28805,
    "c": 0.07522,
    "h": 254.5
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#0C2B4F
secondary
#8B5F2C
accent
#9B38F0
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#03050A
muted
#78797C

Preview Lab

Preview with #0C2B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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