#2D309F#2D309F

#2D309F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.175 H 273.5°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2D309F
RGBrgb(45, 48, 159)
HSLhsl(238, 56%, 40%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(71.7%, 69.8%, 0%, 37.6%)
CIE-LABlab(27.23, 36.36, -60.29)
CIE-LCHlch(27.23, 70.40, 301.09°)
OKLaboklab(38.77% 0.0107 -0.1743)
OKLCHoklch(38.77% 0.175 273.5)
XYZxyz(8.3951, 5.1742, 33.3505)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D309F #9F9C2D
analogous
#2D699F #2D309F #632D9F
triadic
#2D309F #9F2D30 #309F2D
tetradic
#2D309F #9F2D69 #9F9C2D #2D9F63
square
#2D309F #9F2D69 #9F9C2D #2D9F63
split-complementary
#2D309F #9F632D #699F2D
monochromatic
#121340 #20226F #2D309F #4044C9 #7073D6

Accessibility & contrast

On white

10.32
#2D309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D309F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D309F#FFFFFF#000000##FFFFFF
##2D309F1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d309f;
/* rgb */ color: rgb(45, 48, 159);
/* oklch */ color: oklch(38.8% 0.175 273.5);
Tailwind
colors: {
  custom: {
    50: '#7769bc',
    500: '#2d309f',
    950: '#000000',
  },
}
SCSS
$custom: #2d309f;
$custom-light: #7769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d309f",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 238.421,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.38773,
    "c": 0.17461,
    "h": 273.5
  },
  "luminance": 0.05175
}

Semantic roles & 50–950 ramp

primary
#2D309F
secondary
#BEBC6A
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D309F

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

Preview Lab → · Contrast checker → · Palette generator →

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