#030940#030940

#030940 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.9% C 0.102 H 266.7°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#030940
RGBrgb(3, 9, 64)
HSLhsl(234, 91%, 13%)
HSVhsv(234, 95%, 25%)
CMYKcmyk(95.3%, 85.9%, 0%, 74.9%)
CIE-LABlab(5.28, 19.99, -34.48)
CIE-LCHlch(5.28, 39.85, 300.10°)
OKLaboklab(18.91% -0.0058 -0.1019)
OKLCHoklch(18.91% 0.102 266.7)
XYZxyz(1.0603, 0.5848, 4.9065)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#030940 #403A03
analogous
#032740 #030940 #1B0340
triadic
#030940 #400309 #094003
tetradic
#030940 #400327 #403A03 #03401B
square
#030940 #400327 #403A03 #03401B
split-complementary
#030940 #401B03 #274003
monochromatic
#01041D #01041D #030940 #06117A #0819B5

Accessibility & contrast

On white

18.80
#030940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#030940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #030940
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##030940#FFFFFF#000000##FFFFFF
##0309401.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #030940;
/* rgb */ color: rgb(3, 9, 64);
/* oklch */ color: oklch(18.9% 0.102 266.7);
Tailwind
colors: {
  custom: {
    50: '#514976',
    500: '#030940',
    950: '#000000',
  },
}
SCSS
$custom: #030940;
$custom-light: #514976;
$custom-dark: #000000;
JSON
{
  "hex": "#030940",
  "rgb": {
    "r": 3,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 234.098,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.18913,
    "c": 0.10205,
    "h": 266.7
  },
  "luminance": 0.00585
}

Semantic roles & 50–950 ramp

primary
#030940
secondary
#82781D
accent
#EA29FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #030940

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

Preview Lab → · Contrast checker → · Palette generator →

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