#031239#031239

#031239 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.0% C 0.079 H 263.0°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#031239
RGBrgb(3, 18, 57)
HSLhsl(223, 90%, 12%)
HSVhsv(223, 95%, 22%)
CMYKcmyk(94.7%, 68.4%, 0%, 77.6%)
CIE-LABlab(6.75, 11.21, -27.05)
CIE-LCHlch(6.75, 29.28, 292.51°)
OKLaboklab(19.97% -0.0096 -0.0786)
OKLCHoklch(19.97% 0.079 263)
XYZxyz(0.9921, 0.7473, 3.9620)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031239 #392A03
analogous
#032D39 #031239 #0F0339
triadic
#031239 #390312 #123903
tetradic
#031239 #39032D #392A03 #03390F
square
#031239 #39032D #392A03 #03390F
split-complementary
#031239 #390F03 #2D3903
monochromatic
#02091D #02091D #031239 #062473 #0937AD

Accessibility & contrast

On white

18.27
#031239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#031239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031239
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031239#FFFFFF#000000##FFFFFF
##0312391.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#001238
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #031239;
/* rgb */ color: rgb(3, 18, 57);
/* oklch */ color: oklch(20.0% 0.079 263.0);
Tailwind
colors: {
  custom: {
    50: '#4e4f70',
    500: '#031239',
    950: '#000000',
  },
}
SCSS
$custom: #031239;
$custom-light: #4e4f70;
$custom-dark: #000000;
JSON
{
  "hex": "#031239",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 223.333,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19967,
    "c": 0.0792,
    "h": 263
  },
  "luminance": 0.00747
}

Semantic roles & 50–950 ramp

primary
#031239
secondary
#7C611C
accent
#C329FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #031239

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

Preview Lab → · Contrast checker → · Palette generator →

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