#2D338E#2D338E

#2D338E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.148 H 273.9°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2D338E
RGBrgb(45, 51, 142)
HSLhsl(236, 52%, 37%)
HSVhsv(236, 68%, 56%)
CMYKcmyk(68.3%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.38, 28.35, -51.24)
CIE-LCHlch(26.38, 58.56, 298.95°)
OKLaboklab(37.68% 0.0102 -0.1478)
OKLCHoklch(37.68% 0.148 273.9)
XYZxyz(7.1469, 4.8779, 26.1508)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D338E #8E882D
analogous
#2D648E #2D338E #582D8E
triadic
#2D338E #8E2D33 #338E2D
tetradic
#2D338E #8E2D64 #8E882D #2D8E58
square
#2D338E #8E2D64 #8E882D #2D8E58
split-complementary
#2D338E #8E582D #648E2D
monochromatic
#101231 #1E2260 #2D338E #3C44BC #676DCF

Accessibility & contrast

On white

10.63
#2D338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D338E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D338E#FFFFFF#000000##FFFFFF
##2D338E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d338e;
/* rgb */ color: rgb(45, 51, 142);
/* oklch */ color: oklch(37.7% 0.148 273.9);
Tailwind
colors: {
  custom: {
    50: '#736ab0',
    500: '#2d338e',
    950: '#000000',
  },
}
SCSS
$custom: #2d338e;
$custom-light: #736ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d338e",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 236.289,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37681,
    "c": 0.14813,
    "h": 273.9
  },
  "luminance": 0.04879
}

Semantic roles & 50–950 ramp

primary
#2D338E
secondary
#B5B061
accent
#D24CDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D338E

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

Preview Lab → · Contrast checker → · Palette generator →

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