#070C31#070C31

#070C31 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.073 H 270.7°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#070C31
RGBrgb(7, 12, 49)
HSLhsl(233, 75%, 11%)
HSVhsv(233, 86%, 19%)
CMYKcmyk(85.7%, 75.5%, 0%, 80.8%)
CIE-LABlab(4.79, 11.05, -24.34)
CIE-LCHlch(4.79, 26.73, 294.41°)
OKLaboklab(17.96% 0.0009 -0.0731)
OKLCHoklch(17.96% 0.073 270.7)
XYZxyz(0.7733, 0.5298, 2.9666)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070C31 #312C07
analogous
#072131 #070C31 #170731
triadic
#070C31 #31070C #0C3107
tetradic
#070C31 #310721 #312C07 #073117
square
#070C31 #310721 #312C07 #073117
split-complementary
#070C31 #311707 #213107
monochromatic
#04071B #04071B #070C31 #0F1967 #16269C

Accessibility & contrast

On white

18.99
#070C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#070C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070C31
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070C31#FFFFFF#000000##FFFFFF
##070C311.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#000E30
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #070c31;
/* rgb */ color: rgb(7, 12, 49);
/* oklch */ color: oklch(18.0% 0.073 270.7);
Tailwind
colors: {
  custom: {
    50: '#4d4c69',
    500: '#070c31',
    950: '#000000',
  },
}
SCSS
$custom: #070c31;
$custom-light: #4d4c69;
$custom-dark: #000000;
JSON
{
  "hex": "#070c31",
  "rgb": {
    "r": 7,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 232.857,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.17964,
    "c": 0.07314,
    "h": 270.7
  },
  "luminance": 0.0053
}

Semantic roles & 50–950 ramp

primary
#070C31
secondary
#716723
accent
#DB36F2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #070C31

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

Preview Lab → · Contrast checker → · Palette generator →

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