#2D339A#2D339A

#2D339A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.165 H 273.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2D339A
RGBrgb(45, 51, 154)
HSLhsl(237, 55%, 39%)
HSVhsv(237, 71%, 60%)
CMYKcmyk(70.8%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.46, 32.69, -56.86)
CIE-LCHlch(27.46, 65.59, 299.89°)
OKLaboklab(38.8% 0.0093 -0.1642)
OKLCHoklch(38.8% 0.165 273.2)
XYZxyz(8.0968, 5.2579, 31.1537)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D339A #9A942D
analogous
#2D6A9A #2D339A #5E2D9A
triadic
#2D339A #9A2D33 #339A2D
tetradic
#2D339A #9A2D6A #9A942D #2D9A5E
square
#2D339A #9A2D6A #9A942D #2D9A5E
split-complementary
#2D339A #9A5E2D #6A9A2D
monochromatic
#11143B #1F236B #2D339A #3E45C7 #6D73D4

Accessibility & contrast

On white

10.23
#2D339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D339A
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D339A#FFFFFF#000000##FFFFFF
##2D339A1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d339a;
/* rgb */ color: rgb(45, 51, 154);
/* oklch */ color: oklch(38.8% 0.165 273.2);
Tailwind
colors: {
  custom: {
    50: '#766bb9',
    500: '#2d339a',
    950: '#000000',
  },
}
SCSS
$custom: #2d339a;
$custom-light: #766bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d339a",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 236.697,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38797,
    "c": 0.16451,
    "h": 273.2
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#2D339A
secondary
#BBB767
accent
#D64ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D339A

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

Preview Lab → · Contrast checker → · Palette generator →

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