#2D339C#2D339C

#2D339C is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.167 H 273.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2D339C
RGBrgb(45, 51, 156)
HSLhsl(237, 55%, 39%)
HSVhsv(237, 71%, 61%)
CMYKcmyk(71.2%, 67.3%, 0%, 38.8%)
CIE-LABlab(27.64, 33.40, -57.78)
CIE-LCHlch(27.64, 66.74, 300.03°)
OKLaboklab(38.99% 0.0091 -0.1669)
OKLCHoklch(38.99% 0.167 273.1)
XYZxyz(8.2648, 5.3250, 32.0383)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D339C #9C962D
analogous
#2D6B9C #2D339C #5F2D9C
triadic
#2D339C #9C2D33 #339C2D
tetradic
#2D339C #9C2D6B #9C962D #2D9C5F
square
#2D339C #9C2D6B #9C962D #2D9C5F
split-complementary
#2D339C #9C5F2D #6B9C2D
monochromatic
#12143D #1F236D #2D339C #3F46C8 #6E74D5

Accessibility & contrast

On white

10.17
#2D339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2D339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D339C
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D339C#FFFFFF#000000##FFFFFF
##2D339C1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d339c;
/* rgb */ color: rgb(45, 51, 156);
/* oklch */ color: oklch(39.0% 0.167 273.1);
Tailwind
colors: {
  custom: {
    50: '#766bba',
    500: '#2d339c',
    950: '#000000',
  },
}
SCSS
$custom: #2d339c;
$custom-light: #766bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d339c",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 236.757,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38988,
    "c": 0.16719,
    "h": 273.1
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#2D339C
secondary
#BCB868
accent
#D649DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D339C

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

Preview Lab → · Contrast checker → · Palette generator →

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