#2D308D#2D308D

#2D308D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.151 H 274.8°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2D308D
RGBrgb(45, 48, 141)
HSLhsl(238, 52%, 36%)
HSVhsv(238, 68%, 55%)
CMYKcmyk(68.1%, 66%, 0%, 44.7%)
CIE-LABlab(25.55, 29.96, -51.99)
CIE-LCHlch(25.55, 60.01, 299.95°)
OKLaboklab(37.04% 0.0127 -0.15)
OKLCHoklch(37.04% 0.151 274.8)
XYZxyz(6.9453, 4.5943, 25.7149)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D308D #8D8A2D
analogous
#2D608D #2D308D #5A2D8D
triadic
#2D308D #8D2D30 #308D2D
tetradic
#2D308D #8D2D60 #8D8A2D #2D8D5A
square
#2D308D #8D2D60 #8D8A2D #2D8D5A
split-complementary
#2D308D #8D5A2D #608D2D
monochromatic
#0F1030 #1E205F #2D308D #3C40BB #6669CE

Accessibility & contrast

On white

10.94
#2D308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D308D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D308D#FFFFFF#000000##FFFFFF
##2D308D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d308d;
/* rgb */ color: rgb(45, 48, 141);
/* oklch */ color: oklch(37.0% 0.151 274.8);
Tailwind
colors: {
  custom: {
    50: '#7368af',
    500: '#2d308d',
    950: '#000000',
  },
}
SCSS
$custom: #2d308d;
$custom-light: #7368af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d308d",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 238.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3704,
    "c": 0.15053,
    "h": 274.8
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#2D308D
secondary
#B5B261
accent
#D74DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D308D

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

Preview Lab → · Contrast checker → · Palette generator →

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