#2D389F#2D389F

#2D389F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.165 H 271.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2D389F
RGBrgb(45, 56, 159)
HSLhsl(234, 56%, 40%)
HSVhsv(234, 72%, 62%)
CMYKcmyk(71.7%, 64.8%, 0%, 37.6%)
CIE-LABlab(29.13, 31.26, -57.17)
CIE-LCHlch(29.13, 65.16, 298.67°)
OKLaboklab(40.16% 0.0053 -0.1651)
OKLCHoklch(40.16% 0.165 271.8)
XYZxyz(8.7523, 5.8886, 33.4695)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D389F #9F942D
analogous
#2D719F #2D389F #5B2D9F
triadic
#2D389F #9F2D38 #389F2D
tetradic
#2D389F #9F2D71 #9F942D #2D9F5B
square
#2D389F #9F2D71 #9F942D #2D9F5B
split-complementary
#2D389F #9F5B2D #719F2D
monochromatic
#121640 #20276F #2D389F #404DC9 #707AD6

Accessibility & contrast

On white

9.64
#2D389F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D389F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D389F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D389F#FFFFFF#000000##FFFFFF
##2D389F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d389f;
/* rgb */ color: rgb(45, 56, 159);
/* oklch */ color: oklch(40.2% 0.165 271.8);
Tailwind
colors: {
  custom: {
    50: '#766ebc',
    500: '#2d389f',
    950: '#000000',
  },
}
SCSS
$custom: #2d389f;
$custom-light: #766ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d389f",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 159
  },
  "hsl": {
    "h": 234.211,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.40159,
    "c": 0.1652,
    "h": 271.8
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#2D389F
secondary
#BEB66A
accent
#D149DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D389F

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

Preview Lab → · Contrast checker → · Palette generator →

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