#040296#040296

#040296 is a dark, highly saturated blue. Relative luminance 0.023; OKLCH L 30.7% C 0.209 H 264.9°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#040296
RGBrgb(4, 2, 150)
HSLhsl(241, 97%, 30%)
HSVhsv(241, 99%, 59%)
CMYKcmyk(97.3%, 98.7%, 0%, 41.2%)
CIE-LABlab(16.85, 52.69, -72.04)
CIE-LCHlch(16.85, 89.25, 306.18°)
OKLaboklab(30.69% -0.0184 -0.2081)
OKLCHoklch(30.69% 0.209 264.9)
XYZxyz(5.5749, 2.2705, 28.9927)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040296 #949602
analogous
#024A96 #040296 #4E0296
triadic
#040296 #960402 #029604
tetradic
#040296 #96024A #949602 #02964E
square
#040296 #96024A #949602 #02964E
split-complementary
#040296 #964E02 #4A9602
monochromatic
#01001E #02015A #040296 #0603D2 #1A17FC

Accessibility & contrast

On white

14.44
#040296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#040296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040296
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040296#FFFFFF#000000##FFFFFF
##0402961.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003199
Deuteranopia (green-blind)
#002194
Tritanopia (blue-blind)
#003C56
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #040296;
/* rgb */ color: rgb(4, 2, 150);
/* oklch */ color: oklch(30.7% 0.209 264.9);
Tailwind
colors: {
  custom: {
    50: '#6e4fb7',
    500: '#040296',
    950: '#000000',
  },
}
SCSS
$custom: #040296;
$custom-light: #6e4fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#040296",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 150
  },
  "hsl": {
    "h": 240.811,
    "s": 97.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30689,
    "c": 0.20893,
    "h": 264.9
  },
  "luminance": 0.02271
}

Semantic roles & 50–950 ramp

primary
#040296
secondary
#CBCD27
accent
#FF29FC
background
#F7F4FB
surface
#EDE7F6
border
#C8C3D0
text
#090211
muted
#7B7880

Preview Lab

Preview with #040296

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

Preview Lab → · Contrast checker → · Palette generator →

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