#031A38#031A38

#031A38 is a very dark, moderate cyan. Relative luminance 0.010; OKLCH L 22.0% C 0.066 H 255.6°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#031A38
RGBrgb(3, 26, 56)
HSLhsl(214, 90%, 12%)
HSVhsv(214, 95%, 22%)
CMYKcmyk(94.6%, 53.6%, 0%, 78%)
CIE-LABlab(9.35, 4.53, -22.13)
CIE-LCHlch(9.35, 22.59, 281.58°)
OKLaboklab(21.98% -0.0163 -0.0636)
OKLCHoklch(21.98% 0.066 255.6)
XYZxyz(1.1205, 1.0435, 3.8830)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031A38 #382103
analogous
#033538 #031A38 #060338
triadic
#031A38 #38031A #1A3803
tetradic
#031A38 #380335 #382103 #033806
square
#031A38 #380335 #382103 #033806
split-complementary
#031A38 #380603 #353803
monochromatic
#020D1D #020D1D #031A38 #063572 #0950AC

Accessibility & contrast

On white

17.37
#031A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#031A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031A38
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031A38#FFFFFF#000000##FFFFFF
##031A381.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1D39
Deuteranopia (green-blind)
#011837
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #031a38;
/* rgb */ color: rgb(3, 26, 56);
/* oklch */ color: oklch(22.0% 0.066 255.6);
Tailwind
colors: {
  custom: {
    50: '#4d556f',
    500: '#031a38',
    950: '#000000',
  },
}
SCSS
$custom: #031a38;
$custom-light: #4d556f;
$custom-dark: #000000;
JSON
{
  "hex": "#031a38",
  "rgb": {
    "r": 3,
    "g": 26,
    "b": 56
  },
  "hsl": {
    "h": 213.962,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21975,
    "c": 0.06562,
    "h": 255.6
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#031A38
secondary
#7B521C
accent
#A229FF
background
#F4F4F6
surface
#E7E8EC
border
#C3C4C7
text
#020307
muted
#78787A

Preview Lab

Preview with #031A38

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

Preview Lab → · Contrast checker → · Palette generator →

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