#020307#020307

#020307 is a very dark, near-neutral blue. Relative luminance 0.001; OKLCH L 9.8% C 0.015 H 268.1°. Best body text is #FFFFFF at 20.62:1 contrast (WCAG AA passes).

Color values

HEX#020307
RGBrgb(2, 3, 7)
HSLhsl(228, 56%, 2%)
HSVhsv(228, 71%, 3%)
CMYKcmyk(71.4%, 57.1%, 0%, 97.3%)
CIE-LABlab(0.84, 0.29, -1.60)
CIE-LCHlch(0.84, 1.63, 280.31°)
OKLaboklab(9.82% -0.0005 -0.0154)
OKLCHoklch(9.82% 0.015 268.1)
XYZxyz(0.0959, 0.0934, 0.2139)
Luminance0.0009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020307 #070602
analogous
#020607 #020307 #040207
triadic
#020307 #070203 #030702
tetradic
#020307 #070206 #070602 #020704
square
#020307 #070206 #070602 #020704
split-complementary
#020307 #070402 #060702
monochromatic
#070A18 #070A18 #070A18 #101737 #1D2C66

Accessibility & contrast

On white

20.62
#020307 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#020307 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020307
20.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020307#FFFFFF#000000##FFFFFF
##0203071.0020.621.0220.62
#FFFFFF20.621.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020307
Deuteranopia (green-blind)
#020307
Tritanopia (blue-blind)
#010404
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #020307;
/* rgb */ color: rgb(2, 3, 7);
/* oklch */ color: oklch(9.8% 0.015 268.1);
Tailwind
colors: {
  custom: {
    50: '#48484a',
    500: '#020307',
    950: '#000000',
  },
}
SCSS
$custom: #020307;
$custom-light: #48484a;
$custom-dark: #000000;
JSON
{
  "hex": "#020307",
  "rgb": {
    "r": 2,
    "g": 3,
    "b": 7
  },
  "hsl": {
    "h": 228,
    "s": 55.556,
    "l": 1.765
  },
  "oklch": {
    "l": 0.09818,
    "c": 0.01543,
    "h": 268.1
  },
  "luminance": 0.00093
}

Semantic roles & 50–950 ramp

primary
#020307
secondary
#463E1F
accent
#C149DF
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #020307

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

Preview Lab → · Contrast checker → · Palette generator →

#020307 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva