#02072A#02072A

#02072A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.072 H 266.5°. Best body text is #FFFFFF at 19.69:1 contrast (WCAG AA passes).

Color values

HEX#02072A
RGBrgb(2, 7, 42)
HSLhsl(233, 91%, 9%)
HSVhsv(233, 95%, 16%)
CMYKcmyk(95.2%, 83.3%, 0%, 83.5%)
CIE-LABlab(3.00, 8.33, -21.94)
CIE-LCHlch(3.00, 23.46, 290.78°)
OKLaboklab(15.45% -0.0044 -0.072)
OKLCHoklch(15.45% 0.072 266.5)
XYZxyz(0.5188, 0.3320, 2.2268)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02072A #2A2502
analogous
#021B2A #02072A #11022A
triadic
#02072A #2A0207 #072A02
tetradic
#02072A #2A021B #2A2502 #022A11
square
#02072A #2A021B #2A2502 #022A11
split-complementary
#02072A #2A1102 #1B2A02
monochromatic
#01051D #01051D #02072A #051164 #081A9F

Accessibility & contrast

On white

19.69
#02072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#02072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02072A
19.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02072A#FFFFFF#000000##FFFFFF
##02072A1.0019.691.0719.69
#FFFFFF19.691.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2B
Deuteranopia (green-blind)
#000929
Tritanopia (blue-blind)
#001017
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #02072a;
/* rgb */ color: rgb(2, 7, 42);
/* oklch */ color: oklch(15.4% 0.072 266.5);
Tailwind
colors: {
  custom: {
    50: '#484a64',
    500: '#02072a',
    950: '#000000',
  },
}
SCSS
$custom: #02072a;
$custom-light: #484a64;
$custom-dark: #000000;
JSON
{
  "hex": "#02072a",
  "rgb": {
    "r": 2,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 232.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15448,
    "c": 0.07218,
    "h": 266.5
  },
  "luminance": 0.00332
}

Semantic roles & 50–950 ramp

primary
#02072A
secondary
#6F6419
accent
#E429FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #02072A

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

Preview Lab → · Contrast checker → · Palette generator →

#02072A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva