#031E4E#031E4E

#031E4E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.095 H 260.4°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#031E4E
RGBrgb(3, 30, 78)
HSLhsl(218, 93%, 16%)
HSVhsv(218, 96%, 31%)
CMYKcmyk(96.2%, 61.5%, 0%, 69.4%)
CIE-LABlab(12.59, 11.89, -32.31)
CIE-LCHlch(12.59, 34.42, 290.20°)
OKLaboklab(25.06% -0.0158 -0.0934)
OKLCHoklch(25.06% 0.095 260.4)
XYZxyz(1.8765, 1.4977, 7.3964)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031E4E #4E3303
analogous
#03434E #031E4E #0D034E
triadic
#031E4E #4E031E #1E4E03
tetradic
#031E4E #4E0343 #4E3303 #034E0D
square
#031E4E #4E0343 #4E3303 #034E0D
split-complementary
#031E4E #4E0D03 #434E03
monochromatic
#010B1D #010B1D #031E4E #053589 #084BC4

Accessibility & contrast

On white

16.16
#031E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#031E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031E4E
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031E4E#FFFFFF#000000##FFFFFF
##031E4E1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #031e4e;
/* rgb */ color: rgb(3, 30, 78);
/* oklch */ color: oklch(25.1% 0.095 260.4);
Tailwind
colors: {
  custom: {
    50: '#545980',
    500: '#031e4e',
    950: '#000000',
  },
}
SCSS
$custom: #031e4e;
$custom-light: #545980;
$custom-dark: #000000;
JSON
{
  "hex": "#031e4e",
  "rgb": {
    "r": 3,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 218.4,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25056,
    "c": 0.09474,
    "h": 260.4
  },
  "luminance": 0.01498
}

Semantic roles & 50–950 ramp

primary
#031E4E
secondary
#8E661E
accent
#B229FF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #031E4E

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

Preview Lab → · Contrast checker → · Palette generator →

#031E4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva