#0D335F#0D335F

#0D335F is a dark, moderate cyan. Relative luminance 0.033; OKLCH L 32.1% C 0.089 H 254.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#0D335F
RGBrgb(13, 51, 95)
HSLhsl(212, 76%, 21%)
HSVhsv(212, 86%, 37%)
CMYKcmyk(86.3%, 46.3%, 0%, 62.7%)
CIE-LABlab(21.13, 4.95, -29.91)
CIE-LCHlch(21.13, 30.32, 279.39°)
OKLaboklab(32.13% -0.0232 -0.0857)
OKLCHoklch(32.13% 0.089 254.8)
XYZxyz(3.4146, 3.2790, 11.2772)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D335F #5F390D
analogous
#0D5C5F #0D335F #100D5F
triadic
#0D335F #5F0D33 #335F0D
tetradic
#0D335F #5F0D5C #5F390D #0D5F10
square
#0D335F #5F0D5C #5F390D #0D5F10
split-complementary
#0D335F #5F100D #5C5F0D
monochromatic
#040E1B #061629 #0D335F #145095 #1C6DCB

Accessibility & contrast

On white

12.68
#0D335F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#0D335F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D335F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D335F#FFFFFF#000000##FFFFFF
##0D335F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3761
Deuteranopia (green-blind)
#0D2F5E
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #0d335f;
/* rgb */ color: rgb(13, 51, 95);
/* oklch */ color: oklch(32.1% 0.089 254.8);
Tailwind
colors: {
  custom: {
    50: '#5b6a8d',
    500: '#0d335f',
    950: '#000000',
  },
}
SCSS
$custom: #0d335f;
$custom-light: #5b6a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0d335f",
  "rgb": {
    "r": 13,
    "g": 51,
    "b": 95
  },
  "hsl": {
    "h": 212.195,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32128,
    "c": 0.0888,
    "h": 254.8
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#0D335F
secondary
#99682F
accent
#9B35F3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0D335F

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

Preview Lab → · Contrast checker → · Palette generator →

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