#2D308F#2D308F

#2D308F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.153 H 274.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2D308F
RGBrgb(45, 48, 143)
HSLhsl(238, 52%, 37%)
HSVhsv(238, 69%, 56%)
CMYKcmyk(68.5%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.73, 30.68, -52.94)
CIE-LCHlch(25.73, 61.18, 300.09°)
OKLaboklab(37.23% 0.0125 -0.1528)
OKLCHoklch(37.23% 0.153 274.7)
XYZxyz(7.0954, 4.6543, 26.5057)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D308F #8F8C2D
analogous
#2D618F #2D308F #5B2D8F
triadic
#2D308F #8F2D30 #308F2D
tetradic
#2D308F #8F2D61 #8F8C2D #2D8F5B
square
#2D308F #8F2D61 #8F8C2D #2D8F5B
split-complementary
#2D308F #8F5B2D #618F2D
monochromatic
#101132 #1E2060 #2D308F #3C40BE #676ACF

Accessibility & contrast

On white

10.88
#2D308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D308F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D308F#FFFFFF#000000##FFFFFF
##2D308F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d308f;
/* rgb */ color: rgb(45, 48, 143);
/* oklch */ color: oklch(37.2% 0.153 274.7);
Tailwind
colors: {
  custom: {
    50: '#7368b1',
    500: '#2d308f',
    950: '#000000',
  },
}
SCSS
$custom: #2d308f;
$custom-light: #7368b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d308f",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 238.163,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37227,
    "c": 0.15327,
    "h": 274.7
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#2D308F
secondary
#B6B362
accent
#D74CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D308F

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

Preview Lab → · Contrast checker → · Palette generator →

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