#0040FF#0040FF

#0040FF is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.1% C 0.280 H 263.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#0040FF
RGBrgb(0, 64, 255)
HSLhsl(225, 100%, 50%)
HSVhsv(225, 100%, 100%)
CMYKcmyk(100%, 74.9%, 0%, 0%)
CIE-LABlab(39.38, 58.06, -96.05)
CIE-LCHlch(39.38, 112.23, 301.15°)
OKLaboklab(50.11% -0.0302 -0.2787)
OKLCHoklch(50.11% 0.28 263.8)
XYZxyz(19.8770, 10.8840, 95.6415)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0040FF #FFBF00
analogous
#00C0FF #0040FF #3F00FF
triadic
#0040FF #FF0040 #40FF00
tetradic
#0040FF #FF00C0 #FFBF00 #00FF3F
square
#0040FF #FF00C0 #FFBF00 #00FF3F
split-complementary
#0040FF #FF3F00 #C0FF00
monochromatic
#002185 #0031C2 #0040FF #3D6EFF #7A9CFF

Accessibility & contrast

On white

6.61
#0040FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#0040FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #0040FF
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0040FF#FFFFFF#000000##FFFFFF
##0040FF1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068FF
Deuteranopia (green-blind)
#0051FC
Tritanopia (blue-blind)
#007A9D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #0040ff;
/* rgb */ color: rgb(0, 64, 255);
/* oklch */ color: oklch(50.1% 0.280 263.8);
Tailwind
colors: {
  custom: {
    50: '#8676ff',
    500: '#0040ff',
    950: '#000000',
  },
}
SCSS
$custom: #0040ff;
$custom-light: #8676ff;
$custom-dark: #000000;
JSON
{
  "hex": "#0040ff",
  "rgb": {
    "r": 0,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 224.941,
    "s": 100,
    "l": 50
  },
  "oklch": {
    "l": 0.50109,
    "c": 0.28035,
    "h": 263.8
  },
  "luminance": 0.10887
}

Semantic roles & 50–950 ramp

primary
#0040FF
secondary
#E7CA74
accent
#C929FF
background
#F9F7FF
surface
#F2EDFF
border
#CCC8D7
text
#0E0918
muted
#7E7B86

Preview Lab

Preview with #0040FF

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

Preview Lab → · Contrast checker → · Palette generator →

#0040FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva