#060227#060227

#060227 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.0% C 0.076 H 278.3°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).

Color values

HEX#060227
RGBrgb(6, 2, 39)
HSLhsl(246, 90%, 8%)
HSVhsv(246, 95%, 15%)
CMYKcmyk(84.6%, 94.9%, 0%, 84.7%)
CIE-LABlab(2.06, 10.06, -21.08)
CIE-LCHlch(2.06, 23.36, 295.52°)
OKLaboklab(14.03% 0.011 -0.0747)
OKLCHoklch(14.03% 0.076 278.3)
XYZxyz(0.4629, 0.2286, 1.9388)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060227 #232702
analogous
#021027 #060227 #180227
triadic
#060227 #270602 #022706
tetradic
#060227 #270210 #232702 #022718
square
#060227 #270210 #232702 #022718
split-complementary
#060227 #271802 #102702
monochromatic
#04011D #04011D #060227 #0F0561 #18089B

Accessibility & contrast

On white

20.08
#060227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#060227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #060227
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060227#FFFFFF#000000##FFFFFF
##0602271.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000928
Deuteranopia (green-blind)
#000626
Tritanopia (blue-blind)
#000B13
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #060227;
/* rgb */ color: rgb(6, 2, 39);
/* oklch */ color: oklch(14.0% 0.076 278.3);
Tailwind
colors: {
  custom: {
    50: '#494761',
    500: '#060227',
    950: '#000000',
  },
}
SCSS
$custom: #060227;
$custom-light: #494761;
$custom-dark: #000000;
JSON
{
  "hex": "#060227",
  "rgb": {
    "r": 6,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 246.486,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.14026,
    "c": 0.07555,
    "h": 278.3
  },
  "luminance": 0.00229
}

Semantic roles & 50–950 ramp

primary
#060227
secondary
#636C18
accent
#FF29E8
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #060227

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

Preview Lab → · Contrast checker → · Palette generator →

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