#031140#031140

#031140 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.092 H 264.4°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#031140
RGBrgb(3, 17, 64)
HSLhsl(226, 91%, 13%)
HSVhsv(226, 95%, 25%)
CMYKcmyk(95.3%, 73.4%, 0%, 74.9%)
CIE-LABlab(7.14, 15.48, -31.44)
CIE-LCHlch(7.14, 35.05, 296.22°)
OKLaboklab(20.51% -0.0089 -0.0913)
OKLCHoklch(20.51% 0.092 264.4)
XYZxyz(1.1631, 0.7903, 4.9407)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031140 #403203
analogous
#032F40 #031140 #140340
triadic
#031140 #400311 #114003
tetradic
#031140 #40032F #403203 #034014
square
#031140 #40032F #403203 #034014
split-complementary
#031140 #401403 #2F4003
monochromatic
#01081D #01081D #031140 #06217A #0830B5

Accessibility & contrast

On white

18.13
#031140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031140
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031140#FFFFFF#000000##FFFFFF
##0311401.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001941
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #031140;
/* rgb */ color: rgb(3, 17, 64);
/* oklch */ color: oklch(20.5% 0.092 264.4);
Tailwind
colors: {
  custom: {
    50: '#514e75',
    500: '#031140',
    950: '#000000',
  },
}
SCSS
$custom: #031140;
$custom-light: #514e75;
$custom-dark: #000000;
JSON
{
  "hex": "#031140",
  "rgb": {
    "r": 3,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 226.23,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20513,
    "c": 0.09172,
    "h": 264.4
  },
  "luminance": 0.0079
}

Semantic roles & 50–950 ramp

primary
#031140
secondary
#826B1D
accent
#CE29FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #031140

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

Preview Lab → · Contrast checker → · Palette generator →

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