#2D38B1#2D38B1

#2D38B1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.189 H 271.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2D38B1
RGBrgb(45, 56, 177)
HSLhsl(235, 59%, 44%)
HSVhsv(235, 75%, 69%)
CMYKcmyk(74.6%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.78, 37.73, -65.28)
CIE-LCHlch(30.78, 75.40, 300.03°)
OKLaboklab(41.87% 0.0039 -0.1888)
OKLCHoklch(41.87% 0.189 271.2)
XYZxyz(10.4295, 6.5595, 42.3029)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38B1 #B1A62D
analogous
#2D7AB1 #2D38B1 #642DB1
triadic
#2D38B1 #B12D38 #38B12D
tetradic
#2D38B1 #B12D7A #B1A62D #2DB164
square
#2D38B1 #B12D7A #B1A62D #2DB164
split-complementary
#2D38B1 #B1642D #7AB12D
monochromatic
#14194F #212980 #2D38B1 #4A55D1 #7B83DD

Accessibility & contrast

On white

9.08
#2D38B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2D38B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38B1
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38B1#FFFFFF#000000##FFFFFF
##2D38B11.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d38b1;
/* rgb */ color: rgb(45, 56, 177);
/* oklch */ color: oklch(41.9% 0.189 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a6fc9',
    500: '#2d38b1',
    950: '#000000',
  },
}
SCSS
$custom: #2d38b1;
$custom-light: #7a6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38b1",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 235,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41869,
    "c": 0.18889,
    "h": 271.2
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#2D38B1
secondary
#C6BF74
accent
#D645E3
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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