#071228#071228

#071228 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.6% C 0.048 H 262.3°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#071228
RGBrgb(7, 18, 40)
HSLhsl(220, 70%, 9%)
HSVhsv(220, 83%, 16%)
CMYKcmyk(82.5%, 55%, 0%, 84.3%)
CIE-LABlab(5.70, 3.57, -16.16)
CIE-LCHlch(5.70, 16.55, 282.46°)
OKLaboklab(18.62% -0.0064 -0.0474)
OKLCHoklch(18.62% 0.048 262.3)
XYZxyz(0.6868, 0.6309, 2.0927)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071228 #281D07
analogous
#072328 #071228 #0D0728
triadic
#071228 #280712 #122807
tetradic
#071228 #280723 #281D07 #07280D
square
#071228 #280723 #281D07 #07280D
split-complementary
#071228 #280D07 #232807
monochromatic
#050C1A #050C1A #071228 #10295C #194190

Accessibility & contrast

On white

18.65
#071228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#071228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071228
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071228#FFFFFF#000000##FFFFFF
##0712281.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081429
Deuteranopia (green-blind)
#041128
Tritanopia (blue-blind)
#00171A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #071228;
/* rgb */ color: rgb(7, 18, 40);
/* oklch */ color: oklch(18.6% 0.048 262.3);
Tailwind
colors: {
  custom: {
    50: '#4a4f62',
    500: '#071228',
    950: '#000000',
  },
}
SCSS
$custom: #071228;
$custom-light: #4a4f62;
$custom-dark: #000000;
JSON
{
  "hex": "#071228",
  "rgb": {
    "r": 7,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 220,
    "s": 70.213,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18617,
    "c": 0.04789,
    "h": 262.3
  },
  "luminance": 0.00631
}

Semantic roles & 50–950 ramp

primary
#071228
secondary
#685123
accent
#B23BED
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #071228

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

Preview Lab → · Contrast checker → · Palette generator →

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