#2D309E#2D309E

#2D309E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.173 H 273.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2D309E
RGBrgb(45, 48, 158)
HSLhsl(238, 56%, 40%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(71.5%, 69.6%, 0%, 38%)
CIE-LABlab(27.13, 36.00, -59.84)
CIE-LCHlch(27.13, 69.84, 301.03°)
OKLaboklab(38.67% 0.0109 -0.173)
OKLCHoklch(38.67% 0.173 273.6)
XYZxyz(8.3086, 5.1396, 32.8953)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D309E #9E9B2D
analogous
#2D699E #2D309E #632D9E
triadic
#2D309E #9E2D30 #309E2D
tetradic
#2D309E #9E2D69 #9E9B2D #2D9E63
square
#2D309E #9E2D69 #9E9B2D #2D9E63
split-complementary
#2D309E #9E632D #699E2D
monochromatic
#12133F #1F226E #2D309E #4043C9 #6F72D6

Accessibility & contrast

On white

10.36
#2D309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2D309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D309E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D309E#FFFFFF#000000##FFFFFF
##2D309E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d309e;
/* rgb */ color: rgb(45, 48, 158);
/* oklch */ color: oklch(38.7% 0.173 273.6);
Tailwind
colors: {
  custom: {
    50: '#7769bc',
    500: '#2d309e',
    950: '#000000',
  },
}
SCSS
$custom: #2d309e;
$custom-light: #7769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d309e",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 238.407,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.17331,
    "h": 273.6
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D309E

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

Preview Lab → · Contrast checker → · Palette generator →

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