#031538#031538

#031538 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.6% C 0.073 H 260.6°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#031538
RGBrgb(3, 21, 56)
HSLhsl(220, 90%, 12%)
HSVhsv(220, 95%, 22%)
CMYKcmyk(94.6%, 62.5%, 0%, 78%)
CIE-LABlab(7.60, 8.55, -24.95)
CIE-LCHlch(7.60, 26.38, 288.91°)
OKLaboklab(20.63% -0.0119 -0.0721)
OKLCHoklch(20.63% 0.073 260.6)
XYZxyz(1.0193, 0.8411, 3.8492)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031538 #382603
analogous
#033038 #031538 #0C0338
triadic
#031538 #380315 #153803
tetradic
#031538 #380330 #382603 #03380C
square
#031538 #380330 #382603 #03380C
split-complementary
#031538 #380C03 #303803
monochromatic
#020B1D #020B1D #031538 #062B72 #0941AC

Accessibility & contrast

On white

17.98
#031538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#031538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031538
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031538#FFFFFF#000000##FFFFFF
##0315381.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#001E23
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #031538;
/* rgb */ color: rgb(3, 21, 56);
/* oklch */ color: oklch(20.6% 0.073 260.6);
Tailwind
colors: {
  custom: {
    50: '#4d516f',
    500: '#031538',
    950: '#000000',
  },
}
SCSS
$custom: #031538;
$custom-light: #4d516f;
$custom-dark: #000000;
JSON
{
  "hex": "#031538",
  "rgb": {
    "r": 3,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 219.623,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20626,
    "c": 0.07304,
    "h": 260.6
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#031538
secondary
#7B5B1C
accent
#B629FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031538

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

Preview Lab → · Contrast checker → · Palette generator →

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