#2D308C#2D308C

#2D308C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.149 H 274.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2D308C
RGBrgb(45, 48, 140)
HSLhsl(238, 51%, 36%)
HSVhsv(238, 68%, 55%)
CMYKcmyk(67.9%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.46, 29.60, -51.52)
CIE-LCHlch(25.46, 59.42, 299.88°)
OKLaboklab(36.95% 0.0127 -0.1486)
OKLCHoklch(36.95% 0.149 274.9)
XYZxyz(6.8712, 4.5646, 25.3248)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D308C #8C892D
analogous
#2D608C #2D308C #5A2D8C
triadic
#2D308C #8C2D30 #308C2D
tetradic
#2D308C #8C2D60 #8C892D #2D8C5A
square
#2D308C #8C2D60 #8C892D #2D8C5A
split-complementary
#2D308C #8C5A2D #608C2D
monochromatic
#0F102F #1E205E #2D308C #3C40BA #6669CE

Accessibility & contrast

On white

10.98
#2D308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D308C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D308C#FFFFFF#000000##FFFFFF
##2D308C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d308c;
/* rgb */ color: rgb(45, 48, 140);
/* oklch */ color: oklch(36.9% 0.149 274.9);
Tailwind
colors: {
  custom: {
    50: '#7368ae',
    500: '#2d308c',
    950: '#000000',
  },
}
SCSS
$custom: #2d308c;
$custom-light: #7368ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d308c",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 238.105,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36947,
    "c": 0.14916,
    "h": 274.9
  },
  "luminance": 0.04565
}

Semantic roles & 50–950 ramp

primary
#2D308C
secondary
#B4B260
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D308C

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

Preview Lab → · Contrast checker → · Palette generator →

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