#030540#030540

#030540 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.107 H 267.4°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#030540
RGBrgb(3, 5, 64)
HSLhsl(238, 91%, 13%)
HSVhsv(238, 95%, 25%)
CMYKcmyk(95.3%, 92.2%, 0%, 74.9%)
CIE-LABlab(4.50, 21.82, -35.76)
CIE-LCHlch(4.50, 41.89, 301.40°)
OKLaboklab(18.15% -0.0049 -0.107)
OKLCHoklch(18.15% 0.107 267.4)
XYZxyz(1.0169, 0.4979, 4.8920)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#030540 #403E03
analogous
#032340 #030540 #1F0340
triadic
#030540 #400305 #054003
tetradic
#030540 #400323 #403E03 #03401F
square
#030540 #400323 #403E03 #03401F
split-complementary
#030540 #401F03 #234003
monochromatic
#01021D #01021D #030540 #060A7A #080EB5

Accessibility & contrast

On white

19.10
#030540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#030540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #030540
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##030540#FFFFFF#000000##FFFFFF
##0305401.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000C3F
Tritanopia (blue-blind)
#001823
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #030540;
/* rgb */ color: rgb(3, 5, 64);
/* oklch */ color: oklch(18.1% 0.107 267.4);
Tailwind
colors: {
  custom: {
    50: '#514776',
    500: '#030540',
    950: '#000000',
  },
}
SCSS
$custom: #030540;
$custom-light: #514776;
$custom-dark: #000000;
JSON
{
  "hex": "#030540",
  "rgb": {
    "r": 3,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 238.033,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.18147,
    "c": 0.10713,
    "h": 267.4
  },
  "luminance": 0.00498
}

Semantic roles & 50–950 ramp

primary
#030540
secondary
#827F1D
accent
#F829FF
background
#F4F4F7
surface
#E7E6ED
border
#C3C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #030540

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

Preview Lab → · Contrast checker → · Palette generator →

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