#070840#070840

#070840 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.0% C 0.102 H 270.6°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#070840
RGBrgb(7, 8, 64)
HSLhsl(239, 80%, 14%)
HSVhsv(239, 89%, 25%)
CMYKcmyk(89.1%, 87.5%, 0%, 74.9%)
CIE-LABlab(5.32, 21.19, -34.41)
CIE-LCHlch(5.32, 40.41, 301.63°)
OKLaboklab(19.03% 0.0011 -0.1015)
OKLCHoklch(19.03% 0.102 270.6)
XYZxyz(1.0996, 0.5889, 4.9052)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070840 #403F07
analogous
#072540 #070840 #230740
triadic
#070840 #400708 #084007
tetradic
#070840 #400725 #403F07 #074023
square
#070840 #400725 #403F07 #074023
split-complementary
#070840 #402307 #254007
monochromatic
#03031C #03031C #070840 #0D0F77 #1316AE

Accessibility & contrast

On white

18.79
#070840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #070840
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070840#FFFFFF#000000##FFFFFF
##0708401.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #070840;
/* rgb */ color: rgb(7, 8, 64);
/* oklch */ color: oklch(19.0% 0.102 270.6);
Tailwind
colors: {
  custom: {
    50: '#534976',
    500: '#070840',
    950: '#000000',
  },
}
SCSS
$custom: #070840;
$custom-light: #534976;
$custom-dark: #000000;
JSON
{
  "hex": "#070840",
  "rgb": {
    "r": 7,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 238.947,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19033,
    "c": 0.1015,
    "h": 270.6
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#070840
secondary
#7F7E24
accent
#F331F7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #070840

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

Preview Lab → · Contrast checker → · Palette generator →

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