#2D42E2#2D42E2

#2D42E2 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.239 H 268.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2D42E2
RGBrgb(45, 66, 226)
HSLhsl(233, 76%, 53%)
HSVhsv(233, 80%, 89%)
CMYKcmyk(80.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(37.74, 48.70, -82.37)
CIE-LCHlch(37.74, 95.69, 300.59°)
OKLaboklab(48.32% -0.0059 -0.2387)
OKLCHoklch(48.32% 0.239 268.6)
XYZxyz(16.7531, 9.9433, 72.9731)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42E2 #E2CD2D
analogous
#2D9CE2 #2D42E2 #732DE2
triadic
#2D42E2 #E22D42 #42E22D
tetradic
#2D42E2 #E22D9C #E2CD2D #2DE273
square
#2D42E2 #E22D9C #E2CD2D #2DE273
split-complementary
#2D42E2 #E2732D #9CE22D
monochromatic
#121F83 #192CB8 #2D42E2 #6372E9 #99A3F1

Accessibility & contrast

On white

7.03
#2D42E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2D42E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42E2
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42E2#FFFFFF#000000##FFFFFF
##2D42E21.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E7
Deuteranopia (green-blind)
#0050DF
Tritanopia (blue-blind)
#00708E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d42e2;
/* rgb */ color: rgb(45, 66, 226);
/* oklch */ color: oklch(48.3% 0.239 268.6);
Tailwind
colors: {
  custom: {
    50: '#8577ec',
    500: '#2d42e2',
    950: '#000000',
  },
}
SCSS
$custom: #2d42e2;
$custom-light: #8577ec;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42e2",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 233.039,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48323,
    "c": 0.23873,
    "h": 268.6
  },
  "luminance": 0.09945
}

Semantic roles & 50–950 ramp

primary
#2D42E2
secondary
#DCD38E
accent
#DC35F2
background
#F9F7FE
surface
#F1EDFD
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #2D42E2

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

Preview Lab → · Contrast checker → · Palette generator →

#2D42E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva