#080240#080240

#080240 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.109 H 272.9°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#080240
RGBrgb(8, 2, 64)
HSLhsl(246, 94%, 13%)
HSVhsv(246, 97%, 25%)
CMYKcmyk(87.5%, 96.9%, 0%, 74.9%)
CIE-LABlab(4.20, 24.18, -36.23)
CIE-LCHlch(4.20, 43.56, 303.71°)
OKLaboklab(17.96% 0.0054 -0.1089)
OKLCHoklch(17.96% 0.109 272.9)
XYZxyz(1.0470, 0.4651, 4.8841)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#080240 #3A4002
analogous
#021B40 #080240 #270240
triadic
#080240 #400802 #024008
tetradic
#080240 #40021B #3A4002 #024027
square
#080240 #40021B #3A4002 #024027
split-complementary
#080240 #402702 #1B4002
monochromatic
#04011E #04011E #080240 #0F047B #1706B7

Accessibility & contrast

On white

19.21
#080240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#080240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #080240
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##080240#FFFFFF#000000##FFFFFF
##0802401.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001242
Deuteranopia (green-blind)
#000C3F
Tritanopia (blue-blind)
#001622
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #080240;
/* rgb */ color: rgb(8, 2, 64);
/* oklch */ color: oklch(18.0% 0.109 272.9);
Tailwind
colors: {
  custom: {
    50: '#534676',
    500: '#080240',
    950: '#000000',
  },
}
SCSS
$custom: #080240;
$custom-light: #534676;
$custom-dark: #000000;
JSON
{
  "hex": "#080240",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 64
  },
  "hsl": {
    "h": 245.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.17961,
    "c": 0.109,
    "h": 272.9
  },
  "luminance": 0.00465
}

Semantic roles & 50–950 ramp

primary
#080240
secondary
#79831B
accent
#FF29EA
background
#F5F3F7
surface
#E9E5ED
border
#C5C1C8
text
#030008
muted
#78777B

Preview Lab

Preview with #080240

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

Preview Lab → · Contrast checker → · Palette generator →

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