#0342FD#0342FD

#0342FD is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.2% C 0.276 H 263.9°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#0342FD
RGBrgb(3, 66, 253)
HSLhsl(225, 98%, 50%)
HSVhsv(225, 99%, 99%)
CMYKcmyk(98.8%, 73.9%, 0%, 0.8%)
CIE-LABlab(39.59, 56.34, -94.59)
CIE-LCHlch(39.59, 110.10, 300.78°)
OKLaboklab(50.2% -0.0294 -0.2745)
OKLCHoklch(50.2% 0.276 263.9)
XYZxyz(19.7091, 11.0049, 93.9948)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0342FD #FDBE03
analogous
#03BFFD #0342FD #4103FD
triadic
#0342FD #FD0342 #42FD03
tetradic
#0342FD #FD03BF #FDBE03 #03FD41
square
#0342FD #FD03BF #FDBE03 #03FD41
split-complementary
#0342FD #FD4103 #BFFD03
monochromatic
#012285 #0232C1 #0342FD #4070FD #7C9DFE

Accessibility & contrast

On white

6.56
#0342FD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#0342FD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #0342FD
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0342FD#FFFFFF#000000##FFFFFF
##0342FD1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069FF
Deuteranopia (green-blind)
#0052FA
Tritanopia (blue-blind)
#007A9D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #0342fd;
/* rgb */ color: rgb(3, 66, 253);
/* oklch */ color: oklch(50.2% 0.276 263.9);
Tailwind
colors: {
  custom: {
    50: '#8678ff',
    500: '#0342fd',
    950: '#000000',
  },
}
SCSS
$custom: #0342fd;
$custom-light: #8678ff;
$custom-dark: #000000;
JSON
{
  "hex": "#0342fd",
  "rgb": {
    "r": 3,
    "g": 66,
    "b": 253
  },
  "hsl": {
    "h": 224.88,
    "s": 98.425,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50202,
    "c": 0.27608,
    "h": 263.9
  },
  "luminance": 0.11008
}

Semantic roles & 50–950 ramp

primary
#0342FD
secondary
#E6CA76
accent
#C929FF
background
#F9F7FF
surface
#F2EDFF
border
#CCC8D7
text
#0E0918
muted
#7E7B86

Preview Lab

Preview with #0342FD

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

Preview Lab → · Contrast checker → · Palette generator →

#0342FD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva