#2D338A#2D338A

#2D338A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.143 H 274.2°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2D338A
RGBrgb(45, 51, 138)
HSLhsl(236, 51%, 36%)
HSVhsv(236, 67%, 54%)
CMYKcmyk(67.4%, 63%, 0%, 45.9%)
CIE-LABlab(26.04, 26.89, -49.33)
CIE-LCHlch(26.04, 56.18, 298.60°)
OKLaboklab(37.32% 0.0103 -0.1421)
OKLCHoklch(37.32% 0.143 274.2)
XYZxyz(6.8519, 4.7599, 24.5975)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D338A #8A842D
analogous
#2D618A #2D338A #552D8A
triadic
#2D338A #8A2D33 #338A2D
tetradic
#2D338A #8A2D61 #8A842D #2D8A55
square
#2D338A #8A2D61 #8A842D #2D8A55
split-complementary
#2D338A #8A552D #618A2D
monochromatic
#0F112E #1E225C #2D338A #3C44B8 #656BCD

Accessibility & contrast

On white

10.76
#2D338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2D338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D338A
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D338A#FFFFFF#000000##FFFFFF
##2D338A1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d338a;
/* rgb */ color: rgb(45, 51, 138);
/* oklch */ color: oklch(37.3% 0.143 274.2);
Tailwind
colors: {
  custom: {
    50: '#726aad',
    500: '#2d338a',
    950: '#000000',
  },
}
SCSS
$custom: #2d338a;
$custom-light: #726aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d338a",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 236.129,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37321,
    "c": 0.14253,
    "h": 274.2
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#2D338A
secondary
#B3AE60
accent
#D14DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D338A

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

Preview Lab → · Contrast checker → · Palette generator →

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