#070C40#070C40

#070C40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.097 H 269.6°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#070C40
RGBrgb(7, 12, 64)
HSLhsl(235, 80%, 14%)
HSVhsv(235, 89%, 25%)
CMYKcmyk(89.1%, 81.2%, 0%, 74.9%)
CIE-LABlab(6.13, 19.23, -33.09)
CIE-LCHlch(6.13, 38.27, 300.16°)
OKLaboklab(19.75% -0.0007 -0.0967)
OKLCHoklch(19.75% 0.097 269.6)
XYZxyz(1.1442, 0.6781, 4.9201)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070C40 #403B07
analogous
#072940 #070C40 #1F0740
triadic
#070C40 #40070C #0C4007
tetradic
#070C40 #400729 #403B07 #07401F
square
#070C40 #400729 #403B07 #07401F
split-complementary
#070C40 #401F07 #294007
monochromatic
#03051C #03051C #070C40 #0D1677 #1321AE

Accessibility & contrast

On white

18.49
#070C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#070C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070C40
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070C40#FFFFFF#000000##FFFFFF
##070C401.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #070c40;
/* rgb */ color: rgb(7, 12, 64);
/* oklch */ color: oklch(19.8% 0.097 269.6);
Tailwind
colors: {
  custom: {
    50: '#524b75',
    500: '#070c40',
    950: '#000000',
  },
}
SCSS
$custom: #070c40;
$custom-light: #524b75;
$custom-dark: #000000;
JSON
{
  "hex": "#070c40",
  "rgb": {
    "r": 7,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 234.737,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19751,
    "c": 0.09668,
    "h": 269.6
  },
  "luminance": 0.00678
}

Semantic roles & 50–950 ramp

primary
#070C40
secondary
#7F7724
accent
#E531F7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #070C40

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

Preview Lab → · Contrast checker → · Palette generator →

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