#2D339F#2D339F

#2D339F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.171 H 272.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2D339F
RGBrgb(45, 51, 159)
HSLhsl(237, 56%, 40%)
HSVhsv(237, 72%, 62%)
CMYKcmyk(71.7%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.92, 34.47, -59.15)
CIE-LCHlch(27.92, 68.46, 300.24°)
OKLaboklab(39.28% 0.0088 -0.1709)
OKLCHoklch(39.28% 0.171 272.9)
XYZxyz(8.5219, 5.4279, 33.3927)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D339F #9F992D
analogous
#2D6C9F #2D339F #602D9F
triadic
#2D339F #9F2D33 #339F2D
tetradic
#2D339F #9F2D6C #9F992D #2D9F60
square
#2D339F #9F2D6C #9F992D #2D9F60
split-complementary
#2D339F #9F602D #6C9F2D
monochromatic
#121440 #20246F #2D339F #4047C9 #7075D6

Accessibility & contrast

On white

10.07
#2D339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2D339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D339F
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D339F#FFFFFF#000000##FFFFFF
##2D339F1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d339f;
/* rgb */ color: rgb(45, 51, 159);
/* oklch */ color: oklch(39.3% 0.171 272.9);
Tailwind
colors: {
  custom: {
    50: '#776bbc',
    500: '#2d339f',
    950: '#000000',
  },
}
SCSS
$custom: #2d339f;
$custom-light: #776bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d339f",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 236.842,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.39277,
    "c": 0.17117,
    "h": 272.9
  },
  "luminance": 0.05429
}

Semantic roles & 50–950 ramp

primary
#2D339F
secondary
#BEB96A
accent
#D749DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D339F

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

Preview Lab → · Contrast checker → · Palette generator →

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