#2D30A1#2D30A1

#2D30A1 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.177 H 273.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2D30A1
RGBrgb(45, 48, 161)
HSLhsl(238, 56%, 40%)
HSVhsv(238, 72%, 63%)
CMYKcmyk(72%, 70.2%, 0%, 36.9%)
CIE-LABlab(27.42, 37.05, -61.19)
CIE-LCHlch(27.42, 71.53, 301.20°)
OKLaboklab(38.97% 0.0105 -0.1769)
OKLCHoklch(38.97% 0.177 273.4)
XYZxyz(8.5700, 5.2442, 34.2719)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D30A1 #A19E2D
analogous
#2D6AA1 #2D30A1 #642DA1
triadic
#2D30A1 #A12D30 #30A12D
tetradic
#2D30A1 #A12D6A #A19E2D #2DA164
square
#2D30A1 #A12D6A #A19E2D #2DA164
split-complementary
#2D30A1 #A1642D #6AA12D
monochromatic
#121341 #202271 #2D30A1 #4145CA #7174D7

Accessibility & contrast

On white

10.25
#2D30A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D30A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D30A1
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D30A1#FFFFFF#000000##FFFFFF
##2D30A11.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d30a1;
/* rgb */ color: rgb(45, 48, 161);
/* oklch */ color: oklch(39.0% 0.177 273.4);
Tailwind
colors: {
  custom: {
    50: '#7769be',
    500: '#2d30a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d30a1;
$custom-light: #7769be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d30a1",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 161
  },
  "hsl": {
    "h": 238.448,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38972,
    "c": 0.17721,
    "h": 273.4
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#2D30A1
secondary
#BFBD6B
accent
#DC48E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D30A1

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

Preview Lab → · Contrast checker → · Palette generator →

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