#2D309D#2D309D

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

Color values

HEX#2D309D
RGBrgb(45, 48, 157)
HSLhsl(238, 55%, 40%)
HSVhsv(238, 71%, 62%)
CMYKcmyk(71.3%, 69.4%, 0%, 38.4%)
CIE-LABlab(27.03, 35.65, -59.39)
CIE-LCHlch(27.03, 69.27, 300.98°)
OKLaboklab(38.58% 0.011 -0.1716)
OKLCHoklch(38.58% 0.172 273.7)
XYZxyz(8.2229, 5.1053, 32.4438)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D309D #9D9A2D
analogous
#2D689D #2D309D #622D9D
triadic
#2D309D #9D2D30 #309D2D
tetradic
#2D309D #9D2D68 #9D9A2D #2D9D62
square
#2D309D #9D2D68 #9D9A2D #2D9D62
split-complementary
#2D309D #9D622D #689D2D
monochromatic
#12133E #1F216D #2D309D #3F43C8 #6F72D6

Accessibility & contrast

On white

10.39
#2D309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D309D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D309D#FFFFFF#000000##FFFFFF
##2D309D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d309d;
/* rgb */ color: rgb(45, 48, 157);
/* oklch */ color: oklch(38.6% 0.172 273.7);
Tailwind
colors: {
  custom: {
    50: '#7669bb',
    500: '#2d309d',
    950: '#000000',
  },
}
SCSS
$custom: #2d309d;
$custom-light: #7669bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d309d",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 238.393,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38576,
    "c": 0.172,
    "h": 273.7
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D309D

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

Preview Lab → · Contrast checker → · Palette generator →

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