#031234#031234

#031234 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.4% C 0.071 H 261.9°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#031234
RGBrgb(3, 18, 52)
HSLhsl(222, 89%, 11%)
HSVhsv(222, 94%, 20%)
CMYKcmyk(94.2%, 65.4%, 0%, 79.6%)
CIE-LABlab(6.32, 8.52, -24.11)
CIE-LCHlch(6.32, 25.57, 289.47°)
OKLaboklab(19.44% -0.01 -0.0703)
OKLCHoklch(19.44% 0.071 261.9)
XYZxyz(0.8735, 0.6998, 3.3372)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031234 #342503
analogous
#032A34 #031234 #0C0334
triadic
#031234 #340312 #123403
tetradic
#031234 #34032A #342503 #03340C
square
#031234 #34032A #342503 #03340C
split-complementary
#031234 #340C03 #2A3403
monochromatic
#020A1D #020A1D #031234 #06266E #0A3AA8

Accessibility & contrast

On white

18.42
#031234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#031234 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031234
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031234#FFFFFF#000000##FFFFFF
##0312341.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#001233
Tritanopia (blue-blind)
#001A20
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #031234;
/* rgb */ color: rgb(3, 18, 52);
/* oklch */ color: oklch(19.4% 0.071 261.9);
Tailwind
colors: {
  custom: {
    50: '#4c4f6c',
    500: '#031234',
    950: '#000000',
  },
}
SCSS
$custom: #031234;
$custom-light: #4c4f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#031234",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 52
  },
  "hsl": {
    "h": 221.633,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19444,
    "c": 0.07099,
    "h": 261.9
  },
  "luminance": 0.007
}

Semantic roles & 50–950 ramp

primary
#031234
secondary
#775B1C
accent
#BD29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #031234

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

Preview Lab → · Contrast checker → · Palette generator →

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