#3D42C8#3D42C8

#3D42C8 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.6% C 0.203 H 273.7°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#3D42C8
RGBrgb(61, 66, 200)
HSLhsl(238, 56%, 51%)
HSVhsv(238, 70%, 78%)
CMYKcmyk(69.5%, 67%, 0%, 21.6%)
CIE-LABlab(36.09, 41.35, -70.07)
CIE-LCHlch(36.09, 81.36, 300.55°)
OKLaboklab(46.61% 0.013 -0.2024)
OKLCHoklch(46.61% 0.203 273.7)
XYZxyz(14.2945, 9.0573, 55.6273)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42C8 #C8C33D
analogous
#3D87C8 #3D42C8 #7D3DC8
triadic
#3D42C8 #C83D42 #42C83D
tetradic
#3D42C8 #C83D87 #C8C33D #3DC87D
square
#3D42C8 #C83D87 #C8C33D #3DC87D
split-complementary
#3D42C8 #C87D3D #87C83D
monochromatic
#1F216C #2C309C #3D42C8 #6D70D6 #9C9FE3

Accessibility & contrast

On white

7.47
#3D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#3D42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42C8
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42C8#FFFFFF#000000##FFFFFF
##3D42C81.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3d42c8;
/* rgb */ color: rgb(61, 66, 200);
/* oklch */ color: oklch(46.6% 0.203 273.7);
Tailwind
colors: {
  custom: {
    50: '#8577da',
    500: '#3d42c8',
    950: '#000000',
  },
}
SCSS
$custom: #3d42c8;
$custom-light: #8577da;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42c8",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 237.842,
    "s": 55.823,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46613,
    "c": 0.20285,
    "h": 273.7
  },
  "luminance": 0.09059
}

Semantic roles & 50–950 ramp

primary
#3D42C8
secondary
#CFCD92
accent
#DA49DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3D42C8

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

Preview Lab → · Contrast checker → · Palette generator →

#3D42C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva