#031237#031237

#031237 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.076 H 262.6°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#031237
RGBrgb(3, 18, 55)
HSLhsl(223, 90%, 11%)
HSVhsv(223, 95%, 22%)
CMYKcmyk(94.5%, 67.3%, 0%, 78.4%)
CIE-LABlab(6.57, 10.15, -25.89)
CIE-LCHlch(6.57, 27.80, 291.41°)
OKLaboklab(19.76% -0.0098 -0.0753)
OKLCHoklch(19.76% 0.076 262.6)
XYZxyz(0.9432, 0.7277, 3.7044)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031237 #372803
analogous
#032C37 #031237 #0E0337
triadic
#031237 #370312 #123703
tetradic
#031237 #37032C #372803 #03370E
square
#031237 #37032C #372803 #03370E
split-complementary
#031237 #370E03 #2C3703
monochromatic
#02091D #02091D #031237 #062571 #0938AB

Accessibility & contrast

On white

18.33
#031237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031237
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031237#FFFFFF#000000##FFFFFF
##0312371.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#001236
Tritanopia (blue-blind)
#001B22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #031237;
/* rgb */ color: rgb(3, 18, 55);
/* oklch */ color: oklch(19.8% 0.076 262.6);
Tailwind
colors: {
  custom: {
    50: '#4d4f6e',
    500: '#031237',
    950: '#000000',
  },
}
SCSS
$custom: #031237;
$custom-light: #4d4f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#031237",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 222.692,
    "s": 89.655,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19755,
    "c": 0.07594,
    "h": 262.6
  },
  "luminance": 0.00728
}

Semantic roles & 50–950 ramp

primary
#031237
secondary
#7A5F1C
accent
#C129FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #031237

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

Preview Lab → · Contrast checker → · Palette generator →

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