#062147#062147

#062147 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.3% C 0.078 H 257.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#062147
RGBrgb(6, 33, 71)
HSLhsl(215, 84%, 15%)
HSVhsv(215, 92%, 28%)
CMYKcmyk(91.5%, 53.5%, 0%, 72.2%)
CIE-LABlab(13.11, 6.68, -26.63)
CIE-LCHlch(13.11, 27.46, 284.09°)
OKLaboklab(25.3% -0.0166 -0.0766)
OKLCHoklch(25.3% 0.078 257.7)
XYZxyz(1.7559, 1.5811, 6.1727)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#062147 #472C06
analogous
#064147 #062147 #0B0647
triadic
#062147 #470621 #214706
tetradic
#062147 #470641 #472C06 #06470B
square
#062147 #470641 #472C06 #06470B
split-complementary
#062147 #470B06 #414706
monochromatic
#020D1C #020D1C #062147 #0B3B7F #1055B8

Accessibility & contrast

On white

15.96
#062147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#062147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #062147
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##062147#FFFFFF#000000##FFFFFF
##0621471.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2548
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #062147;
/* rgb */ color: rgb(6, 33, 71);
/* oklch */ color: oklch(25.3% 0.078 257.7);
Tailwind
colors: {
  custom: {
    50: '#535b7a',
    500: '#062147',
    950: '#000000',
  },
}
SCSS
$custom: #062147;
$custom-light: #535b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#062147",
  "rgb": {
    "r": 6,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 215.077,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25301,
    "c": 0.07837,
    "h": 257.7
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#062147
secondary
#865D23
accent
#A52DFB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #062147

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

Preview Lab → · Contrast checker → · Palette generator →

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