#030840#030840

#030840 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.7% C 0.103 H 266.9°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#030840
RGBrgb(3, 8, 64)
HSLhsl(235, 91%, 13%)
HSVhsv(235, 95%, 25%)
CMYKcmyk(95.3%, 87.5%, 0%, 74.9%)
CIE-LABlab(5.09, 20.45, -34.80)
CIE-LCHlch(5.09, 40.36, 300.44°)
OKLaboklab(18.73% -0.0056 -0.1031)
OKLCHoklch(18.73% 0.103 266.9)
XYZxyz(1.0495, 0.5631, 4.9029)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#030840 #403B03
analogous
#032640 #030840 #1C0340
triadic
#030840 #400308 #084003
tetradic
#030840 #400326 #403B03 #03401C
square
#030840 #400326 #403B03 #03401C
split-complementary
#030840 #401C03 #264003
monochromatic
#01041D #01041D #030840 #060F7A #0817B5

Accessibility & contrast

On white

18.87
#030840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#030840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #030840
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##030840#FFFFFF#000000##FFFFFF
##0308401.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #030840;
/* rgb */ color: rgb(3, 8, 64);
/* oklch */ color: oklch(18.7% 0.103 266.9);
Tailwind
colors: {
  custom: {
    50: '#514976',
    500: '#030840',
    950: '#000000',
  },
}
SCSS
$custom: #030840;
$custom-light: #514976;
$custom-dark: #000000;
JSON
{
  "hex": "#030840",
  "rgb": {
    "r": 3,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 235.082,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.18727,
    "c": 0.10328,
    "h": 266.9
  },
  "luminance": 0.00563
}

Semantic roles & 50–950 ramp

primary
#030840
secondary
#827A1D
accent
#ED29FF
background
#F4F4F7
surface
#E7E6ED
border
#C3C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #030840

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

Preview Lab → · Contrast checker → · Palette generator →

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