#0C2E4F#0C2E4F

#0C2E4F is a dark, moderate cyan. Relative luminance 0.026; OKLCH L 29.6% C 0.071 H 251.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#0C2E4F
RGBrgb(12, 46, 79)
HSLhsl(210, 74%, 18%)
HSVhsv(210, 85%, 31%)
CMYKcmyk(84.8%, 41.8%, 0%, 69%)
CIE-LABlab(18.35, 1.42, -23.71)
CIE-LCHlch(18.35, 23.75, 273.42°)
OKLaboklab(29.61% -0.0232 -0.0676)
OKLCHoklch(29.61% 0.071 251.1)
XYZxyz(2.5394, 2.5964, 7.7629)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2E4F #4F2D0C
analogous
#0C4F4E #0C2E4F #0C0D4F
triadic
#0C2E4F #4F0C2E #2E4F0C
tetradic
#0C2E4F #4E0C4F #4F2D0C #0D4F0C
square
#0C2E4F #4E0C4F #4F2D0C #0D4F0C
split-complementary
#0C2E4F #4F0C0D #4F4E0C
monochromatic
#040F1B #040F1B #0C2E4F #144D84 #1C6CB9

Accessibility & contrast

On white

13.82
#0C2E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#0C2E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2E4F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2E4F#FFFFFF#000000##FFFFFF
##0C2E4F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3050
Deuteranopia (green-blind)
#142A4E
Tritanopia (blue-blind)
#00363A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #0c2e4f;
/* rgb */ color: rgb(12, 46, 79);
/* oklch */ color: oklch(29.6% 0.071 251.1);
Tailwind
colors: {
  custom: {
    50: '#576680',
    500: '#0c2e4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2e4f;
$custom-light: #576680;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2e4f",
  "rgb": {
    "r": 12,
    "g": 46,
    "b": 79
  },
  "hsl": {
    "h": 209.552,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29608,
    "c": 0.07148,
    "h": 251.1
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#0C2E4F
secondary
#8B5B2C
accent
#9338F0
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#03050A
muted
#787A7C

Preview Lab

Preview with #0C2E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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