#2D38CE#2D38CE

#2D38CE is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.8% C 0.225 H 270.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2D38CE
RGBrgb(45, 56, 206)
HSLhsl(236, 64%, 49%)
HSVhsv(236, 78%, 81%)
CMYKcmyk(78.2%, 72.8%, 0%, 19.2%)
CIE-LABlab(33.65, 47.73, -77.61)
CIE-LCHlch(33.65, 91.11, 301.59°)
OKLaboklab(44.79% 0.0003 -0.2248)
OKLCHoklch(44.79% 0.225 270.1)
XYZxyz(13.6331, 7.8409, 59.1755)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38CE #CEC32D
analogous
#2D88CE #2D38CE #732DCE
triadic
#2D38CE #CE2D38 #38CE2D
tetradic
#2D38CE #CE2D88 #CEC32D #2DCE73
square
#2D38CE #CE2D88 #CEC32D #2DCE73
split-complementary
#2D38CE #CE732D #88CE2D
monochromatic
#171D6A #222A9C #2D38CE #5D65DC #8F95E7

Accessibility & contrast

On white

8.18
#2D38CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2D38CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38CE
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38CE#FFFFFF#000000##FFFFFF
##2D38CE1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D2
Deuteranopia (green-blind)
#0047CB
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d38ce;
/* rgb */ color: rgb(45, 56, 206);
/* oklch */ color: oklch(44.8% 0.225 270.1);
Tailwind
colors: {
  custom: {
    50: '#8170de',
    500: '#2d38ce',
    950: '#000000',
  },
}
SCSS
$custom: #2d38ce;
$custom-light: #8170de;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38ce",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 235.901,
    "s": 64.143,
    "l": 49.216
  },
  "oklch": {
    "l": 0.44792,
    "c": 0.22479,
    "h": 270.1
  },
  "luminance": 0.07842
}

Semantic roles & 50–950 ramp

primary
#2D38CE
secondary
#D1CC86
accent
#DC41E7
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2D38CE

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

Preview Lab → · Contrast checker → · Palette generator →

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