#020C30#020C30

#020C30 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.4% C 0.074 H 264.1°. Best body text is #FFFFFF at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#020C30
RGBrgb(2, 12, 48)
HSLhsl(227, 92%, 10%)
HSVhsv(227, 96%, 19%)
CMYKcmyk(95.8%, 75%, 0%, 81.2%)
CIE-LABlab(4.42, 9.21, -24.20)
CIE-LCHlch(4.42, 25.90, 290.83°)
OKLaboklab(17.42% -0.0077 -0.0737)
OKLCHoklch(17.42% 0.074 264.1)
XYZxyz(0.6898, 0.4892, 2.8538)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C30 #302602
analogous
#022330 #020C30 #0F0230
triadic
#020C30 #30020C #0C3002
tetradic
#020C30 #300223 #302602 #02300F
square
#020C30 #300223 #302602 #02300F
split-complementary
#020C30 #300F02 #233002
monochromatic
#01071D #01071D #020C30 #041B6B #0729A6

Accessibility & contrast

On white

19.13
#020C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#020C30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020C30
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C30#FFFFFF#000000##FFFFFF
##020C301.0019.131.1019.13
#FFFFFF19.131.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001231
Deuteranopia (green-blind)
#000D2F
Tritanopia (blue-blind)
#00151C
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #020c30;
/* rgb */ color: rgb(2, 12, 48);
/* oklch */ color: oklch(17.4% 0.074 264.1);
Tailwind
colors: {
  custom: {
    50: '#4a4c68',
    500: '#020c30',
    950: '#000000',
  },
}
SCSS
$custom: #020c30;
$custom-light: #4a4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#020c30",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 226.957,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17421,
    "c": 0.07413,
    "h": 264.1
  },
  "luminance": 0.00489
}

Semantic roles & 50–950 ramp

primary
#020C30
secondary
#756119
accent
#D029FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020C30

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

Preview Lab → · Contrast checker → · Palette generator →

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