#031238#031238

#031238 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.9% C 0.078 H 262.8°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#031238
RGBrgb(3, 18, 56)
HSLhsl(223, 90%, 12%)
HSVhsv(223, 95%, 22%)
CMYKcmyk(94.6%, 67.9%, 0%, 78%)
CIE-LABlab(6.66, 10.68, -26.47)
CIE-LCHlch(6.66, 28.55, 291.97°)
OKLaboklab(19.86% -0.0097 -0.077)
OKLCHoklch(19.86% 0.078 262.8)
XYZxyz(0.9674, 0.7374, 3.8320)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031238 #382903
analogous
#032D38 #031238 #0F0338
triadic
#031238 #380312 #123803
tetradic
#031238 #38032D #382903 #03380F
square
#031238 #38032D #382903 #03380F
split-complementary
#031238 #380F03 #2D3803
monochromatic
#02091D #02091D #031238 #062572 #0937AC

Accessibility & contrast

On white

18.30
#031238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031238
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031238#FFFFFF#000000##FFFFFF
##0312381.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#001237
Tritanopia (blue-blind)
#001C22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #031238;
/* rgb */ color: rgb(3, 18, 56);
/* oklch */ color: oklch(19.9% 0.078 262.8);
Tailwind
colors: {
  custom: {
    50: '#4e4f6f',
    500: '#031238',
    950: '#000000',
  },
}
SCSS
$custom: #031238;
$custom-light: #4e4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#031238",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 223.019,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.1986,
    "c": 0.07758,
    "h": 262.8
  },
  "luminance": 0.00737
}

Semantic roles & 50–950 ramp

primary
#031238
secondary
#7B601C
accent
#C229FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #031238

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

Preview Lab → · Contrast checker → · Palette generator →

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