#070C2F#070C2F

#070C2F is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.7% C 0.070 H 270.8°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#070C2F
RGBrgb(7, 12, 47)
HSLhsl(233, 74%, 11%)
HSVhsv(233, 85%, 18%)
CMYKcmyk(85.1%, 74.5%, 0%, 81.6%)
CIE-LABlab(4.64, 10.00, -23.09)
CIE-LCHlch(4.64, 25.17, 293.41°)
OKLaboklab(17.74% 0.001 -0.0698)
OKLCHoklch(17.74% 0.07 270.8)
XYZxyz(0.7320, 0.5133, 2.7493)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070C2F #2F2A07
analogous
#07202F #070C2F #16072F
triadic
#070C2F #2F070C #0C2F07
tetradic
#070C2F #2F0720 #2F2A07 #072F16
square
#070C2F #2F0720 #2F2A07 #072F16
split-complementary
#070C2F #2F1607 #202F07
monochromatic
#04071B #04071B #070C2F #0F1A64 #17279A

Accessibility & contrast

On white

19.05
#070C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#070C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070C2F
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070C2F#FFFFFF#000000##FFFFFF
##070C2F1.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#00151B
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #070c2f;
/* rgb */ color: rgb(7, 12, 47);
/* oklch */ color: oklch(17.7% 0.070 270.8);
Tailwind
colors: {
  custom: {
    50: '#4c4c68',
    500: '#070c2f',
    950: '#000000',
  },
}
SCSS
$custom: #070c2f;
$custom-light: #4c4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#070c2f",
  "rgb": {
    "r": 7,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 232.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17742,
    "c": 0.06979,
    "h": 270.8
  },
  "luminance": 0.00513
}

Semantic roles & 50–950 ramp

primary
#070C2F
secondary
#6F6523
accent
#DA37F1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #070C2F

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

Preview Lab → · Contrast checker → · Palette generator →

#070C2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva