#050CFE#050CFE

#050CFE is a mid, highly saturated blue. Relative luminance 0.075; OKLCH L 45.5% C 0.309 H 264.4°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#050CFE
RGBrgb(5, 12, 254)
HSLhsl(238, 99%, 51%)
HSVhsv(238, 98%, 100%)
CMYKcmyk(98%, 95.3%, 0%, 0.4%)
CIE-LABlab(32.81, 77.17, -106.44)
CIE-LCHlch(32.81, 131.47, 305.94°)
OKLaboklab(45.53% -0.03 -0.3076)
OKLCHoklch(45.53% 0.309 264.4)
XYZxyz(18.0773, 7.4485, 94.2316)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050CFE #FEF705
analogous
#0589FE #050CFE #7A05FE
triadic
#050CFE #FE050C #0CFE05
tetradic
#050CFE #FE0589 #FEF705 #05FE7A
square
#050CFE #FE0589 #FEF705 #05FE7A
split-complementary
#050CFE #FE7A05 #89FE05
monochromatic
#010488 #0106C5 #050CFE #4247FE #7F82FE

Accessibility & contrast

On white

8.43
#050CFE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#050CFE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050CFE
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050CFE#FFFFFF#000000##FFFFFF
##050CFE1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AFF
Deuteranopia (green-blind)
#003FFB
Tritanopia (blue-blind)
#006C96
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #050cfe;
/* rgb */ color: rgb(5, 12, 254);
/* oklch */ color: oklch(45.5% 0.309 264.4);
Tailwind
colors: {
  custom: {
    50: '#8a5fff',
    500: '#050cfe',
    950: '#000000',
  },
}
SCSS
$custom: #050cfe;
$custom-light: #8a5fff;
$custom-dark: #000000;
JSON
{
  "hex": "#050cfe",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 254
  },
  "hsl": {
    "h": 238.313,
    "s": 99.203,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45527,
    "c": 0.30908,
    "h": 264.4
  },
  "luminance": 0.07451
}

Semantic roles & 50–950 ramp

primary
#050CFE
secondary
#E7E478
accent
#F929FF
background
#FAF6FF
surface
#F3EBFF
border
#CDC6D7
text
#0F0618
muted
#7F7A86

Preview Lab

Preview with #050CFE

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

Preview Lab → · Contrast checker → · Palette generator →

#050CFE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva