#2D309B#2D309B

#2D309B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.169 H 273.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2D309B
RGBrgb(45, 48, 155)
HSLhsl(238, 55%, 39%)
HSVhsv(238, 71%, 61%)
CMYKcmyk(71%, 69%, 0%, 39.2%)
CIE-LABlab(26.84, 34.95, -58.48)
CIE-LCHlch(26.84, 68.13, 300.86°)
OKLaboklab(38.38% 0.0113 -0.169)
OKLCHoklch(38.38% 0.169 273.8)
XYZxyz(8.0536, 5.0376, 31.5519)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D309B #9B982D
analogous
#2D679B #2D309B #612D9B
triadic
#2D309B #9B2D30 #309B2D
tetradic
#2D309B #9B2D67 #9B982D #2D9B61
square
#2D309B #9B2D67 #9B982D #2D9B61
split-complementary
#2D309B #9B612D #679B2D
monochromatic
#11133C #1F216C #2D309B #3E42C7 #6E70D5

Accessibility & contrast

On white

10.46
#2D309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D309B
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D309B#FFFFFF#000000##FFFFFF
##2D309B1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d309b;
/* rgb */ color: rgb(45, 48, 155);
/* oklch */ color: oklch(38.4% 0.169 273.8);
Tailwind
colors: {
  custom: {
    50: '#7669b9',
    500: '#2d309b',
    950: '#000000',
  },
}
SCSS
$custom: #2d309b;
$custom-light: #7669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d309b",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 238.364,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38379,
    "c": 0.16937,
    "h": 273.8
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D309B

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

Preview Lab → · Contrast checker → · Palette generator →

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