#2D338C#2D338C

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

Color values

HEX#2D338C
RGBrgb(45, 51, 140)
HSLhsl(236, 51%, 36%)
HSVhsv(236, 68%, 55%)
CMYKcmyk(67.9%, 63.6%, 0%, 45.1%)
CIE-LABlab(26.21, 27.62, -50.29)
CIE-LCHlch(26.21, 57.37, 298.78°)
OKLaboklab(37.5% 0.0103 -0.145)
OKLCHoklch(37.5% 0.145 274)
XYZxyz(6.9981, 4.8184, 25.3671)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D338C #8C862D
analogous
#2D638C #2D338C #572D8C
triadic
#2D338C #8C2D33 #338C2D
tetradic
#2D338C #8C2D63 #8C862D #2D8C57
square
#2D338C #8C2D63 #8C862D #2D8C57
split-complementary
#2D338C #8C572D #638C2D
monochromatic
#0F112F #1E225E #2D338C #3C44BA #666CCE

Accessibility & contrast

On white

10.69
#2D338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2D338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D338C
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D338C#FFFFFF#000000##FFFFFF
##2D338C1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d338c;
/* rgb */ color: rgb(45, 51, 140);
/* oklch */ color: oklch(37.5% 0.145 274.0);
Tailwind
colors: {
  custom: {
    50: '#726aae',
    500: '#2d338c',
    950: '#000000',
  },
}
SCSS
$custom: #2d338c;
$custom-light: #726aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d338c",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 236.211,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.375,
    "c": 0.14533,
    "h": 274
  },
  "luminance": 0.04819
}

Semantic roles & 50–950 ramp

primary
#2D338C
secondary
#B4AF60
accent
#D24DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D338C

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

Preview Lab → · Contrast checker → · Palette generator →

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