#020C35#020C35

#020C35 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.082 H 264.6°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#020C35
RGBrgb(2, 12, 53)
HSLhsl(228, 93%, 11%)
HSVhsv(228, 96%, 21%)
CMYKcmyk(96.2%, 77.4%, 0%, 79.2%)
CIE-LABlab(4.81, 11.98, -27.27)
CIE-LCHlch(4.81, 29.79, 293.72°)
OKLaboklab(18.02% -0.0077 -0.0818)
OKLCHoklch(18.02% 0.082 264.6)
XYZxyz(0.7989, 0.5328, 3.4282)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C35 #352B02
analogous
#022535 #020C35 #110235
triadic
#020C35 #35020C #0C3502
tetradic
#020C35 #350225 #352B02 #023511
square
#020C35 #350225 #352B02 #023511
split-complementary
#020C35 #351102 #253502
monochromatic
#01071D #01071D #020C35 #041970 #0627AB

Accessibility & contrast

On white

18.98
#020C35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#020C35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020C35
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C35#FFFFFF#000000##FFFFFF
##020C351.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001336
Deuteranopia (green-blind)
#000E34
Tritanopia (blue-blind)
#00171F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #020c35;
/* rgb */ color: rgb(2, 12, 53);
/* oklch */ color: oklch(18.0% 0.082 264.6);
Tailwind
colors: {
  custom: {
    50: '#4c4b6d',
    500: '#020c35',
    950: '#000000',
  },
}
SCSS
$custom: #020c35;
$custom-light: #4c4b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#020c35",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 53
  },
  "hsl": {
    "h": 228.235,
    "s": 92.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18015,
    "c": 0.08217,
    "h": 264.6
  },
  "luminance": 0.00533
}

Semantic roles & 50–950 ramp

primary
#020C35
secondary
#79661A
accent
#D529FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #020C35

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

Preview Lab → · Contrast checker → · Palette generator →

#020C35 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva