#2D38B0#2D38B0

#2D38B0 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.188 H 271.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2D38B0
RGBrgb(45, 56, 176)
HSLhsl(235, 59%, 43%)
HSVhsv(235, 74%, 69%)
CMYKcmyk(74.4%, 68.2%, 0%, 31%)
CIE-LABlab(30.69, 37.37, -64.84)
CIE-LCHlch(30.69, 74.84, 299.96°)
OKLaboklab(41.77% 0.004 -0.1876)
OKLCHoklch(41.77% 0.188 271.2)
XYZxyz(10.3302, 6.5197, 41.7799)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38B0 #B0A52D
analogous
#2D79B0 #2D38B0 #632DB0
triadic
#2D38B0 #B02D38 #38B02D
tetradic
#2D38B0 #B02D79 #B0A52D #2DB063
square
#2D38B0 #B02D79 #B0A52D #2DB063
split-complementary
#2D38B0 #B0632D #79B02D
monochromatic
#14194F #21287F #2D38B0 #4A55D1 #7A83DD

Accessibility & contrast

On white

9.11
#2D38B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D38B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38B0
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38B0#FFFFFF#000000##FFFFFF
##2D38B01.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d38b0;
/* rgb */ color: rgb(45, 56, 176);
/* oklch */ color: oklch(41.8% 0.188 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a6fc9',
    500: '#2d38b0',
    950: '#000000',
  },
}
SCSS
$custom: #2d38b0;
$custom-light: #7a6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38b0",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 234.962,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41772,
    "c": 0.1876,
    "h": 271.2
  },
  "luminance": 0.06521
}

Semantic roles & 50–950 ramp

primary
#2D38B0
secondary
#C5BE73
accent
#D545E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D38B0

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

Preview Lab → · Contrast checker → · Palette generator →

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