#2D38B5#2D38B5

#2D38B5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.194 H 271.0°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2D38B5
RGBrgb(45, 56, 181)
HSLhsl(235, 60%, 44%)
HSVhsv(235, 75%, 71%)
CMYKcmyk(75.1%, 69.1%, 0%, 29%)
CIE-LABlab(31.16, 39.14, -67.03)
CIE-LCHlch(31.16, 77.62, 300.28°)
OKLaboklab(42.26% 0.0035 -0.194)
OKLCHoklch(42.26% 0.194 271)
XYZxyz(10.8340, 6.7213, 44.4335)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38B5 #B5AA2D
analogous
#2D7CB5 #2D38B5 #662DB5
triadic
#2D38B5 #B52D38 #38B52D
tetradic
#2D38B5 #B52D7C #B5AA2D #2DB566
square
#2D38B5 #B52D7C #B5AA2D #2DB566
split-complementary
#2D38B5 #B5662D #7CB52D
monochromatic
#151A53 #212984 #2D38B5 #4D57D3 #7E85DF

Accessibility & contrast

On white

8.96
#2D38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2D38B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38B5
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38B5#FFFFFF#000000##FFFFFF
##2D38B51.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d38b5;
/* rgb */ color: rgb(45, 56, 181);
/* oklch */ color: oklch(42.3% 0.194 271.0);
Tailwind
colors: {
  custom: {
    50: '#7b6fcc',
    500: '#2d38b5',
    950: '#000000',
  },
}
SCSS
$custom: #2d38b5;
$custom-light: #7b6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38b5",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 235.147,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42261,
    "c": 0.19399,
    "h": 271
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#2D38B5
secondary
#C7C176
accent
#D644E3
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2D38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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