#2D38A5#2D38A5

#2D38A5 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.173 H 271.6°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2D38A5
RGBrgb(45, 56, 165)
HSLhsl(235, 57%, 41%)
HSVhsv(235, 73%, 65%)
CMYKcmyk(72.7%, 66.1%, 0%, 35.3%)
CIE-LABlab(29.67, 33.44, -59.91)
CIE-LCHlch(29.67, 68.61, 299.17°)
OKLaboklab(40.72% 0.0049 -0.1732)
OKLCHoklch(40.72% 0.173 271.6)
XYZxyz(9.2856, 6.1019, 36.2784)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38A5 #A59A2D
analogous
#2D74A5 #2D38A5 #5E2DA5
triadic
#2D38A5 #A52D38 #38A52D
tetradic
#2D38A5 #A52D74 #A59A2D #2DA55E
square
#2D38A5 #A52D74 #A59A2D #2DA55E
split-complementary
#2D38A5 #A55E2D #74A52D
monochromatic
#131745 #202875 #2D38A5 #4350CC #737DD9

Accessibility & contrast

On white

9.46
#2D38A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2D38A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38A5
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38A5#FFFFFF#000000##FFFFFF
##2D38A51.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d38a5;
/* rgb */ color: rgb(45, 56, 165);
/* oklch */ color: oklch(40.7% 0.173 271.6);
Tailwind
colors: {
  custom: {
    50: '#786fc1',
    500: '#2d38a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d38a5;
$custom-light: #786fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38a5",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 165
  },
  "hsl": {
    "h": 234.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40719,
    "c": 0.17323,
    "h": 271.6
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#2D38A5
secondary
#C1B96D
accent
#D247E0
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D38A5

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

Preview Lab → · Contrast checker → · Palette generator →

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