#2D339E#2D339E

#2D339E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.170 H 273.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2D339E
RGBrgb(45, 51, 158)
HSLhsl(237, 56%, 40%)
HSVhsv(237, 72%, 62%)
CMYKcmyk(71.5%, 67.7%, 0%, 38%)
CIE-LABlab(27.83, 34.12, -58.69)
CIE-LCHlch(27.83, 67.89, 300.17°)
OKLaboklab(39.18% 0.0089 -0.1696)
OKLCHoklch(39.18% 0.17 273)
XYZxyz(8.4355, 5.3933, 32.9376)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D339E #9E982D
analogous
#2D6C9E #2D339E #5F2D9E
triadic
#2D339E #9E2D33 #339E2D
tetradic
#2D339E #9E2D6C #9E982D #2D9E5F
square
#2D339E #9E2D6C #9E982D #2D9E5F
split-complementary
#2D339E #9E5F2D #6C9E2D
monochromatic
#12143F #1F246E #2D339E #4047C9 #6F75D6

Accessibility & contrast

On white

10.10
#2D339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D339E
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D339E#FFFFFF#000000##FFFFFF
##2D339E1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d339e;
/* rgb */ color: rgb(45, 51, 158);
/* oklch */ color: oklch(39.2% 0.170 273.0);
Tailwind
colors: {
  custom: {
    50: '#766bbc',
    500: '#2d339e',
    950: '#000000',
  },
}
SCSS
$custom: #2d339e;
$custom-light: #766bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d339e",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 236.814,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3918,
    "c": 0.16984,
    "h": 273
  },
  "luminance": 0.05394
}

Semantic roles & 50–950 ramp

primary
#2D339E
secondary
#BDB969
accent
#D749DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D339E

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

Preview Lab → · Contrast checker → · Palette generator →

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