#04065C#04065C

#04065C is a very dark, vivid blue. Relative luminance 0.009; OKLCH L 22.5% C 0.141 H 266.4°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#04065C
RGBrgb(4, 6, 92)
HSLhsl(239, 92%, 19%)
HSVhsv(239, 96%, 36%)
CMYKcmyk(95.7%, 93.5%, 0%, 63.9%)
CIE-LABlab(8.38, 34.01, -48.78)
CIE-LCHlch(8.38, 59.46, 304.88°)
OKLaboklab(22.51% -0.0089 -0.1412)
OKLCHoklch(22.51% 0.141 266.4)
XYZxyz(2.0463, 0.9285, 10.1945)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04065C #5C5A04
analogous
#04325C #04065C #2E045C
triadic
#04065C #5C0406 #065C04
tetradic
#04065C #5C0432 #5C5A04 #045C2E
square
#04065C #5C0432 #5C5A04 #045C2E
split-complementary
#04065C #5C2E04 #325C04
monochromatic
#01021D #010221 #04065C #070A97 #090ED1

Accessibility & contrast

On white

17.71
#04065C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#04065C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04065C
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04065C#FFFFFF#000000##FFFFFF
##04065C1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D5E
Deuteranopia (green-blind)
#00135B
Tritanopia (blue-blind)
#002434
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #04065c;
/* rgb */ color: rgb(4, 6, 92);
/* oklch */ color: oklch(22.5% 0.141 266.4);
Tailwind
colors: {
  custom: {
    50: '#5c498b',
    500: '#04065c',
    950: '#000000',
  },
}
SCSS
$custom: #04065c;
$custom-light: #5c498b;
$custom-dark: #000000;
JSON
{
  "hex": "#04065c",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 92
  },
  "hsl": {
    "h": 238.636,
    "s": 91.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.22513,
    "c": 0.14146,
    "h": 266.4
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#04065C
secondary
#9A9722
accent
#FA29FF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05010C
muted
#79777D

Preview Lab

Preview with #04065C

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

Preview Lab → · Contrast checker → · Palette generator →

#04065C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva