#2D38C1#2D38C1

#2D38C1 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.5% C 0.209 H 270.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2D38C1
RGBrgb(45, 56, 193)
HSLhsl(236, 62%, 47%)
HSVhsv(236, 77%, 76%)
CMYKcmyk(76.7%, 71%, 0%, 24.3%)
CIE-LABlab(32.34, 43.31, -72.19)
CIE-LCHlch(32.34, 84.18, 300.96°)
OKLaboklab(43.46% 0.0021 -0.209)
OKLCHoklch(43.46% 0.209 270.6)
XYZxyz(12.1187, 7.2352, 51.1996)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38C1 #C1B62D
analogous
#2D82C1 #2D38C1 #6C2DC1
triadic
#2D38C1 #C12D38 #38C12D
tetradic
#2D38C1 #C12D82 #C1B62D #2DC16C
square
#2D38C1 #C12D82 #C1B62D #2DC16C
split-complementary
#2D38C1 #C16C2D #82C12D
monochromatic
#161B5E #212A8F #2D38C1 #545ED7 #868DE3

Accessibility & contrast

On white

8.58
#2D38C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2D38C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38C1
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38C1#FFFFFF#000000##FFFFFF
##2D38C11.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C5
Deuteranopia (green-blind)
#0045BF
Tritanopia (blue-blind)
#005F79
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d38c1;
/* rgb */ color: rgb(45, 56, 193);
/* oklch */ color: oklch(43.5% 0.209 270.6);
Tailwind
colors: {
  custom: {
    50: '#7e6fd5',
    500: '#2d38c1',
    950: '#000000',
  },
}
SCSS
$custom: #2d38c1;
$custom-light: #7e6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38c1",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 235.541,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4346,
    "c": 0.20901,
    "h": 270.6
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#2D38C1
secondary
#CCC67E
accent
#D943E5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2D38C1

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

Preview Lab → · Contrast checker → · Palette generator →

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