#031227#031227

#031227 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.2% C 0.049 H 255.2°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#031227
RGBrgb(3, 18, 39)
HSLhsl(215, 86%, 8%)
HSVhsv(215, 92%, 15%)
CMYKcmyk(92.3%, 53.8%, 0%, 84.7%)
CIE-LABlab(5.41, 2.09, -15.88)
CIE-LCHlch(5.41, 16.02, 277.51°)
OKLaboklab(18.22% -0.0125 -0.0472)
OKLCHoklch(18.22% 0.049 255.2)
XYZxyz(0.6199, 0.5984, 2.0019)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031227 #271803
analogous
#032427 #031227 #060327
triadic
#031227 #270312 #122703
tetradic
#031227 #270324 #271803 #032706
square
#031227 #270324 #271803 #032706
split-complementary
#031227 #270603 #242703
monochromatic
#020D1C #020D1C #031227 #072C60 #0C4699

Accessibility & contrast

On white

18.76
#031227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#031227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031227
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031227#FFFFFF#000000##FFFFFF
##0312271.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081428
Deuteranopia (green-blind)
#031027
Tritanopia (blue-blind)
#00171A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #031227;
/* rgb */ color: rgb(3, 18, 39);
/* oklch */ color: oklch(18.2% 0.049 255.2);
Tailwind
colors: {
  custom: {
    50: '#484f61',
    500: '#031227',
    950: '#000000',
  },
}
SCSS
$custom: #031227;
$custom-light: #484f61;
$custom-dark: #000000;
JSON
{
  "hex": "#031227",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 39
  },
  "hsl": {
    "h": 215,
    "s": 85.714,
    "l": 8.235
  },
  "oklch": {
    "l": 0.18219,
    "c": 0.04878,
    "h": 255.2
  },
  "luminance": 0.00598
}

Semantic roles & 50–950 ramp

primary
#031227
secondary
#6B4A1B
accent
#A52CFC
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010205
muted
#777879

Preview Lab

Preview with #031227

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

Preview Lab → · Contrast checker → · Palette generator →

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