#2D38AC#2D38AC

#2D38AC is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.182 H 271.4°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2D38AC
RGBrgb(45, 56, 172)
HSLhsl(235, 59%, 43%)
HSVhsv(235, 74%, 67%)
CMYKcmyk(73.8%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.31, 35.95, -63.06)
CIE-LCHlch(30.31, 72.59, 299.69°)
OKLaboklab(41.39% 0.0044 -0.1824)
OKLCHoklch(41.39% 0.182 271.4)
XYZxyz(9.9402, 6.3638, 39.7262)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38AC #ACA12D
analogous
#2D78AC #2D38AC #612DAC
triadic
#2D38AC #AC2D38 #38AC2D
tetradic
#2D38AC #AC2D78 #ACA12D #2DAC61
square
#2D38AC #AC2D78 #ACA12D #2DAC61
split-complementary
#2D38AC #AC612D #78AC2D
monochromatic
#14184B #20287B #2D38AC #4753CF #7880DC

Accessibility & contrast

On white

9.24
#2D38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D38AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38AC
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38AC#FFFFFF#000000##FFFFFF
##2D38AC1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0041AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d38ac;
/* rgb */ color: rgb(45, 56, 172);
/* oklch */ color: oklch(41.4% 0.182 271.4);
Tailwind
colors: {
  custom: {
    50: '#796fc6',
    500: '#2d38ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d38ac;
$custom-light: #796fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38ac",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 234.803,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41385,
    "c": 0.18242,
    "h": 271.4
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#2D38AC
secondary
#C4BC71
accent
#D446E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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