#020734#020734

#020734 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.8% C 0.088 H 266.4°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#020734
RGBrgb(2, 7, 52)
HSLhsl(234, 93%, 11%)
HSVhsv(234, 96%, 20%)
CMYKcmyk(96.2%, 86.5%, 0%, 79.6%)
CIE-LABlab(3.73, 13.45, -28.28)
CIE-LCHlch(3.73, 31.31, 295.44°)
OKLaboklab(16.78% -0.0055 -0.0876)
OKLCHoklch(16.78% 0.088 266.4)
XYZxyz(0.7206, 0.4127, 3.2898)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020734 #342F02
analogous
#022034 #020734 #160234
triadic
#020734 #340207 #073402
tetradic
#020734 #340220 #342F02 #023416
square
#020734 #340220 #342F02 #023416
split-complementary
#020734 #341602 #203402
monochromatic
#01041D #01041D #020734 #040F6F #0717AA

Accessibility & contrast

On white

19.40
#020734 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#020734 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##020734#FFFFFF#000000##FFFFFF
##0207341.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)
#001035
Deuteranopia (green-blind)
#000B33
Tritanopia (blue-blind)
#00141C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #020734;
/* rgb */ color: rgb(2, 7, 52);
/* oklch */ color: oklch(16.8% 0.088 266.4);
Tailwind
colors: {
  custom: {
    50: '#4b496c',
    500: '#020734',
    950: '#000000',
  },
}
SCSS
$custom: #020734;
$custom-light: #4b496c;
$custom-dark: #000000;
JSON
{
  "hex": "#020734",
  "rgb": {
    "r": 2,
    "g": 7,
    "b": 52
  },
  "hsl": {
    "h": 234,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16777,
    "c": 0.08778,
    "h": 266.4
  },
  "luminance": 0.00413
}

Semantic roles & 50–950 ramp

primary
#020734
secondary
#786F1A
accent
#EA29FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #020734

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

Preview Lab → · Contrast checker → · Palette generator →

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