#2D339D#2D339D

#2D339D is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.169 H 273.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2D339D
RGBrgb(45, 51, 157)
HSLhsl(237, 55%, 40%)
HSVhsv(237, 71%, 62%)
CMYKcmyk(71.3%, 67.5%, 0%, 38.4%)
CIE-LABlab(27.73, 33.76, -58.24)
CIE-LCHlch(27.73, 67.32, 300.10°)
OKLaboklab(39.08% 0.009 -0.1683)
OKLCHoklch(39.08% 0.169 273.1)
XYZxyz(8.3498, 5.3591, 32.4861)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D339D #9D972D
analogous
#2D6B9D #2D339D #5F2D9D
triadic
#2D339D #9D2D33 #339D2D
tetradic
#2D339D #9D2D6B #9D972D #2D9D5F
square
#2D339D #9D2D6B #9D972D #2D9D5F
split-complementary
#2D339D #9D5F2D #6B9D2D
monochromatic
#12143E #1F246D #2D339D #3F47C8 #6F74D6

Accessibility & contrast

On white

10.14
#2D339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D339D
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D339D#FFFFFF#000000##FFFFFF
##2D339D1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d339d;
/* rgb */ color: rgb(45, 51, 157);
/* oklch */ color: oklch(39.1% 0.169 273.1);
Tailwind
colors: {
  custom: {
    50: '#766bbb',
    500: '#2d339d',
    950: '#000000',
  },
}
SCSS
$custom: #2d339d;
$custom-light: #766bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d339d",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 236.786,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.16852,
    "h": 273.1
  },
  "luminance": 0.0536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D339D

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

Preview Lab → · Contrast checker → · Palette generator →

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