#031438#031438

#031438 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.075 H 261.4°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#031438
RGBrgb(3, 20, 56)
HSLhsl(221, 90%, 12%)
HSVhsv(221, 95%, 22%)
CMYKcmyk(94.6%, 64.3%, 0%, 78%)
CIE-LABlab(7.27, 9.30, -25.48)
CIE-LCHlch(7.27, 27.12, 290.04°)
OKLaboklab(20.37% -0.0112 -0.0737)
OKLCHoklch(20.37% 0.075 261.4)
XYZxyz(1.0013, 0.8051, 3.8432)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031438 #382703
analogous
#032F38 #031438 #0D0338
triadic
#031438 #380314 #143803
tetradic
#031438 #38032F #382703 #03380D
square
#031438 #38032F #382703 #03380D
split-complementary
#031438 #380D03 #2F3803
monochromatic
#020A1D #020A1D #031438 #062972 #093DAC

Accessibility & contrast

On white

18.09
#031438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#031438 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031438
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031438#FFFFFF#000000##FFFFFF
##0314381.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #031438;
/* rgb */ color: rgb(3, 20, 56);
/* oklch */ color: oklch(20.4% 0.075 261.4);
Tailwind
colors: {
  custom: {
    50: '#4e506f',
    500: '#031438',
    950: '#000000',
  },
}
SCSS
$custom: #031438;
$custom-light: #4e506f;
$custom-dark: #000000;
JSON
{
  "hex": "#031438",
  "rgb": {
    "r": 3,
    "g": 20,
    "b": 56
  },
  "hsl": {
    "h": 220.755,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20367,
    "c": 0.07456,
    "h": 261.4
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#031438
secondary
#7B5C1C
accent
#BA29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031438

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

Preview Lab → · Contrast checker → · Palette generator →

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