#2D338D#2D338D

#2D338D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.147 H 274.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2D338D
RGBrgb(45, 51, 141)
HSLhsl(236, 52%, 36%)
HSVhsv(236, 68%, 55%)
CMYKcmyk(68.1%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.30, 27.98, -50.77)
CIE-LCHlch(26.30, 57.97, 298.87°)
OKLaboklab(37.59% 0.0102 -0.1464)
OKLCHoklch(37.59% 0.147 274)
XYZxyz(7.0721, 4.8480, 25.7572)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D338D #8D872D
analogous
#2D638D #2D338D #572D8D
triadic
#2D338D #8D2D33 #338D2D
tetradic
#2D338D #8D2D63 #8D872D #2D8D57
square
#2D338D #8D2D63 #8D872D #2D8D57
split-complementary
#2D338D #8D572D #638D2D
monochromatic
#0F1130 #1E225F #2D338D #3C44BB #666DCE

Accessibility & contrast

On white

10.66
#2D338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D338D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D338D#FFFFFF#000000##FFFFFF
##2D338D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d338d;
/* rgb */ color: rgb(45, 51, 141);
/* oklch */ color: oklch(37.6% 0.147 274.0);
Tailwind
colors: {
  custom: {
    50: '#736aaf',
    500: '#2d338d',
    950: '#000000',
  },
}
SCSS
$custom: #2d338d;
$custom-light: #736aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d338d",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 236.25,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37591,
    "c": 0.14673,
    "h": 274
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#2D338D
secondary
#B5B061
accent
#D24DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D338D

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

Preview Lab → · Contrast checker → · Palette generator →

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