#070842#070842

#070842 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.3% C 0.104 H 270.4°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#070842
RGBrgb(7, 8, 66)
HSLhsl(239, 81%, 14%)
HSVhsv(239, 89%, 26%)
CMYKcmyk(89.4%, 87.9%, 0%, 74.1%)
CIE-LABlab(5.53, 22.24, -35.49)
CIE-LCHlch(5.53, 41.88, 302.07°)
OKLaboklab(19.3% 0.0007 -0.1043)
OKLCHoklch(19.3% 0.104 270.4)
XYZxyz(1.1575, 0.6121, 5.2103)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070842 #424107
analogous
#072642 #070842 #240742
triadic
#070842 #420708 #084207
tetradic
#070842 #420726 #424107 #074224
square
#070842 #420726 #424107 #074224
split-complementary
#070842 #422407 #264207
monochromatic
#03031C #03031C #070842 #0D0F79 #1315B1

Accessibility & contrast

On white

18.71
#070842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#070842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070842
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070842#FFFFFF#000000##FFFFFF
##0708421.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#000F41
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #070842;
/* rgb */ color: rgb(7, 8, 66);
/* oklch */ color: oklch(19.3% 0.104 270.4);
Tailwind
colors: {
  custom: {
    50: '#534977',
    500: '#070842',
    950: '#000000',
  },
}
SCSS
$custom: #070842;
$custom-light: #534977;
$custom-dark: #000000;
JSON
{
  "hex": "#070842",
  "rgb": {
    "r": 7,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 238.983,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.19303,
    "c": 0.10433,
    "h": 270.4
  },
  "luminance": 0.00612
}

Semantic roles & 50–950 ramp

primary
#070842
secondary
#817F24
accent
#F431F7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #070842

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

Preview Lab → · Contrast checker → · Palette generator →

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