#070838#070838

#070838 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.090 H 271.8°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#070838
RGBrgb(7, 8, 56)
HSLhsl(239, 78%, 12%)
HSVhsv(239, 88%, 22%)
CMYKcmyk(87.5%, 85.7%, 0%, 78%)
CIE-LABlab(4.56, 16.71, -29.87)
CIE-LCHlch(4.56, 34.22, 299.22°)
OKLaboklab(17.97% 0.0029 -0.0898)
OKLCHoklch(17.97% 0.09 271.8)
XYZxyz(0.8880, 0.5043, 3.7911)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070838 #383707
analogous
#072038 #070838 #1F0738
triadic
#070838 #380708 #083807
tetradic
#070838 #380720 #383707 #07381F
square
#070838 #380720 #383707 #07381F
split-complementary
#070838 #381F07 #203807
monochromatic
#03041B #03041B #070838 #0E106E #1518A5

Accessibility & contrast

On white

19.08
#070838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#070838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070838
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070838#FFFFFF#000000##FFFFFF
##0708381.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000D37
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #070838;
/* rgb */ color: rgb(7, 8, 56);
/* oklch */ color: oklch(18.0% 0.090 271.8);
Tailwind
colors: {
  custom: {
    50: '#4f496f',
    500: '#070838',
    950: '#000000',
  },
}
SCSS
$custom: #070838;
$custom-light: #4f496f;
$custom-dark: #000000;
JSON
{
  "hex": "#070838",
  "rgb": {
    "r": 7,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 238.776,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.17975,
    "c": 0.08982,
    "h": 271.8
  },
  "luminance": 0.00504
}

Semantic roles & 50–950 ramp

primary
#070838
secondary
#787623
accent
#F034F4
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020107
muted
#78777A

Preview Lab

Preview with #070838

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

Preview Lab → · Contrast checker → · Palette generator →

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