#0501CB#0501CB

#0501CB is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 38.2% C 0.263 H 264.6°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#0501CB
RGBrgb(5, 1, 203)
HSLhsl(241, 99%, 40%)
HSVhsv(241, 100%, 80%)
CMYKcmyk(97.5%, 99.5%, 0%, 20.4%)
CIE-LABlab(24.84, 66.50, -90.55)
CIE-LCHlch(24.84, 112.35, 306.30°)
OKLaboklab(38.21% -0.0247 -0.2615)
OKLCHoklch(38.21% 0.263 264.6)
XYZxyz(10.8492, 4.3643, 56.7589)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0501CB #C7CB01
analogous
#0162CB #0501CB #6A01CB
triadic
#0501CB #CB0501 #01CB05
tetradic
#0501CB #CB0162 #C7CB01 #01CB6A
square
#0501CB #CB0162 #C7CB01 #01CB6A
split-complementary
#0501CB #CB6A01 #62CB01
monochromatic
#020051 #03018E #0501CB #100BFE #4C48FE

Accessibility & contrast

On white

11.21
#0501CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#0501CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0501CB
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0501CB#FFFFFF#000000##FFFFFF
##0501CB1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045D0
Deuteranopia (green-blind)
#002FC8
Tritanopia (blue-blind)
#005476
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #0501cb;
/* rgb */ color: rgb(5, 1, 203);
/* oklch */ color: oklch(38.2% 0.263 264.6);
Tailwind
colors: {
  custom: {
    50: '#7d57dd',
    500: '#0501cb',
    950: '#000000',
  },
}
SCSS
$custom: #0501cb;
$custom-light: #7d57dd;
$custom-dark: #000000;
JSON
{
  "hex": "#0501cb",
  "rgb": {
    "r": 5,
    "g": 1,
    "b": 203
  },
  "hsl": {
    "h": 241.188,
    "s": 99.02,
    "l": 40
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.26269,
    "h": 264.6
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#0501CB
secondary
#DBDE4A
accent
#FF29FB
background
#F8F5FD
surface
#F0E9FB
border
#CBC5D4
text
#0D0415
muted
#7D7983

Preview Lab

Preview with #0501CB

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

Preview Lab → · Contrast checker → · Palette generator →

#0501CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva