#2D38AE#2D38AE

#2D38AE is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.185 H 271.3°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2D38AE
RGBrgb(45, 56, 174)
HSLhsl(235, 59%, 43%)
HSVhsv(235, 74%, 68%)
CMYKcmyk(74.1%, 67.8%, 0%, 31.8%)
CIE-LABlab(30.50, 36.66, -63.95)
CIE-LCHlch(30.50, 73.72, 299.82°)
OKLaboklab(41.58% 0.0042 -0.185)
OKLCHoklch(41.58% 0.185 271.3)
XYZxyz(10.1338, 6.4412, 40.7454)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38AE #AEA32D
analogous
#2D78AE #2D38AE #632DAE
triadic
#2D38AE #AE2D38 #38AE2D
tetradic
#2D38AE #AE2D78 #AEA32D #2DAE63
square
#2D38AE #AE2D78 #AEA32D #2DAE63
split-complementary
#2D38AE #AE632D #78AE2D
monochromatic
#14194D #20287D #2D38AE #4854D0 #7982DC

Accessibility & contrast

On white

9.18
#2D38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2D38AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38AE
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38AE#FFFFFF#000000##FFFFFF
##2D38AE1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d38ae;
/* rgb */ color: rgb(45, 56, 174);
/* oklch */ color: oklch(41.6% 0.185 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a6fc7',
    500: '#2d38ae',
    950: '#000000',
  },
}
SCSS
$custom: #2d38ae;
$custom-light: #7a6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38ae",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 234.884,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41578,
    "c": 0.18502,
    "h": 271.3
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#2D38AE
secondary
#C4BD72
accent
#D546E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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