#071238#071238

#071238 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.1% C 0.076 H 266.7°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#071238
RGBrgb(7, 18, 56)
HSLhsl(227, 78%, 12%)
HSVhsv(227, 88%, 22%)
CMYKcmyk(87.5%, 67.9%, 0%, 78%)
CIE-LABlab(6.89, 11.52, -26.08)
CIE-LCHlch(6.89, 28.51, 293.82°)
OKLaboklab(20.13% -0.0043 -0.0756)
OKLCHoklch(20.13% 0.076 266.7)
XYZxyz(1.0175, 0.7632, 3.8343)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071238 #382D07
analogous
#072A38 #071238 #150738
triadic
#071238 #380712 #123807
tetradic
#071238 #38072A #382D07 #073815
square
#071238 #38072A #382D07 #073815
split-complementary
#071238 #381507 #2A3807
monochromatic
#03091B #03091B #071238 #0E236E #1535A5

Accessibility & contrast

On white

18.22
#071238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#071238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071238
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071238#FFFFFF#000000##FFFFFF
##0712381.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#001C22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #071238;
/* rgb */ color: rgb(7, 18, 56);
/* oklch */ color: oklch(20.1% 0.076 266.7);
Tailwind
colors: {
  custom: {
    50: '#4f4f6f',
    500: '#071238',
    950: '#000000',
  },
}
SCSS
$custom: #071238;
$custom-light: #4f4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#071238",
  "rgb": {
    "r": 7,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 226.531,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20129,
    "c": 0.07569,
    "h": 266.7
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#071238
secondary
#786523
accent
#C934F4
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #071238

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

Preview Lab → · Contrast checker → · Palette generator →

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