#031938#031938

#031938 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.067 H 256.8°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#031938
RGBrgb(3, 25, 56)
HSLhsl(215, 90%, 12%)
HSVhsv(215, 95%, 22%)
CMYKcmyk(94.6%, 55.4%, 0%, 78%)
CIE-LABlab(8.99, 5.33, -22.70)
CIE-LCHlch(8.99, 23.32, 283.22°)
OKLaboklab(21.7% -0.0154 -0.0653)
OKLCHoklch(21.7% 0.067 256.8)
XYZxyz(1.0987, 1.0000, 3.8757)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031938 #382203
analogous
#033438 #031938 #070338
triadic
#031938 #380319 #193803
tetradic
#031938 #380334 #382203 #033807
square
#031938 #380334 #382203 #033807
split-complementary
#031938 #380703 #343803
monochromatic
#020D1D #020D1D #031938 #063372 #094DAC

Accessibility & contrast

On white

17.50
#031938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#031938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031938
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031938#FFFFFF#000000##FFFFFF
##0319381.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C39
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #031938;
/* rgb */ color: rgb(3, 25, 56);
/* oklch */ color: oklch(21.7% 0.067 256.8);
Tailwind
colors: {
  custom: {
    50: '#4d556f',
    500: '#031938',
    950: '#000000',
  },
}
SCSS
$custom: #031938;
$custom-light: #4d556f;
$custom-dark: #000000;
JSON
{
  "hex": "#031938",
  "rgb": {
    "r": 3,
    "g": 25,
    "b": 56
  },
  "hsl": {
    "h": 215.094,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21699,
    "c": 0.06707,
    "h": 256.8
  },
  "luminance": 0.01
}

Semantic roles & 50–950 ramp

primary
#031938
secondary
#7B531C
accent
#A629FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031938

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

Preview Lab → · Contrast checker → · Palette generator →

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