#050227#050227

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

Color values

HEX#050227
RGBrgb(5, 2, 39)
HSLhsl(245, 90%, 8%)
HSVhsv(245, 95%, 15%)
CMYKcmyk(87.2%, 94.9%, 0%, 84.7%)
CIE-LABlab(2.01, 9.80, -21.18)
CIE-LCHlch(2.01, 23.33, 294.84°)
OKLaboklab(13.89% 0.0083 -0.0755)
OKLCHoklch(13.89% 0.076 276.3)
XYZxyz(0.4504, 0.2221, 1.9382)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050227 #242702
analogous
#021127 #050227 #170227
triadic
#050227 #270502 #022705
tetradic
#050227 #270211 #242702 #022717
square
#050227 #270211 #242702 #022717
split-complementary
#050227 #271702 #112702
monochromatic
#04011D #04011D #050227 #0C0561 #14089B

Accessibility & contrast

On white

20.11
#050227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#050227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050227
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050227#FFFFFF#000000##FFFFFF
##0502271.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #050227;
/* rgb */ color: rgb(5, 2, 39);
/* oklch */ color: oklch(13.9% 0.076 276.3);
Tailwind
colors: {
  custom: {
    50: '#494761',
    500: '#050227',
    950: '#000000',
  },
}
SCSS
$custom: #050227;
$custom-light: #494761;
$custom-dark: #000000;
JSON
{
  "hex": "#050227",
  "rgb": {
    "r": 5,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 244.865,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.13889,
    "c": 0.07596,
    "h": 276.3
  },
  "luminance": 0.00222
}

Semantic roles & 50–950 ramp

primary
#050227
secondary
#666C18
accent
#FF29EE
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #050227

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

Preview Lab → · Contrast checker → · Palette generator →

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