#2D309C#2D309C

#2D309C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.171 H 273.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2D309C
RGBrgb(45, 48, 156)
HSLhsl(238, 55%, 39%)
HSVhsv(238, 71%, 61%)
CMYKcmyk(71.2%, 69.2%, 0%, 38.8%)
CIE-LABlab(26.94, 35.30, -58.94)
CIE-LCHlch(26.94, 68.70, 300.92°)
OKLaboklab(38.48% 0.0111 -0.1703)
OKLCHoklch(38.48% 0.171 273.7)
XYZxyz(8.1379, 5.0713, 31.9960)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D309C #9C992D
analogous
#2D689C #2D309C #612D9C
triadic
#2D309C #9C2D30 #309C2D
tetradic
#2D309C #9C2D68 #9C992D #2D9C61
square
#2D309C #9C2D68 #9C992D #2D9C61
split-complementary
#2D309C #9C612D #689C2D
monochromatic
#12133D #1F216D #2D309C #3F42C8 #6E71D5

Accessibility & contrast

On white

10.42
#2D309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2D309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D309C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D309C#FFFFFF#000000##FFFFFF
##2D309C1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d309c;
/* rgb */ color: rgb(45, 48, 156);
/* oklch */ color: oklch(38.5% 0.171 273.7);
Tailwind
colors: {
  custom: {
    50: '#7669ba',
    500: '#2d309c',
    950: '#000000',
  },
}
SCSS
$custom: #2d309c;
$custom-light: #7669ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d309c",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 238.378,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38477,
    "c": 0.17069,
    "h": 273.7
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#2D309C
secondary
#BCBA68
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D309C

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

Preview Lab → · Contrast checker → · Palette generator →

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