#020A2C#020A2C

#020A2C is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.5% C 0.071 H 264.8°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#020A2C
RGBrgb(2, 10, 44)
HSLhsl(229, 91%, 9%)
HSVhsv(229, 95%, 17%)
CMYKcmyk(95.5%, 77.3%, 0%, 82.7%)
CIE-LABlab(3.72, 8.05, -22.32)
CIE-LCHlch(3.72, 23.73, 289.84°)
OKLaboklab(16.47% -0.0064 -0.0703)
OKLCHoklch(16.47% 0.071 264.8)
XYZxyz(0.5880, 0.4118, 2.4309)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020A2C #2C2402
analogous
#021F2C #020A2C #0F022C
triadic
#020A2C #2C020A #0A2C02
tetradic
#020A2C #2C021F #2C2402 #022C0F
square
#020A2C #2C021F #2C2402 #022C0F
split-complementary
#020A2C #2C0F02 #1F2C02
monochromatic
#01071D #01071D #020A2C #051767 #0725A1

Accessibility & contrast

On white

19.40
#020A2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#020A2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020A2C
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020A2C#FFFFFF#000000##FFFFFF
##020A2C1.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#000B2B
Tritanopia (blue-blind)
#001319
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #020a2c;
/* rgb */ color: rgb(2, 10, 44);
/* oklch */ color: oklch(16.5% 0.071 264.8);
Tailwind
colors: {
  custom: {
    50: '#484b65',
    500: '#020a2c',
    950: '#000000',
  },
}
SCSS
$custom: #020a2c;
$custom-light: #484b65;
$custom-dark: #000000;
JSON
{
  "hex": "#020a2c",
  "rgb": {
    "r": 2,
    "g": 10,
    "b": 44
  },
  "hsl": {
    "h": 228.571,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.16468,
    "c": 0.07056,
    "h": 264.8
  },
  "luminance": 0.00412
}

Semantic roles & 50–950 ramp

primary
#020A2C
secondary
#716019
accent
#D629FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #020A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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