#2D30A2#2D30A2

#2D30A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.178 H 273.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2D30A2
RGBrgb(45, 48, 162)
HSLhsl(238, 57%, 41%)
HSVhsv(238, 72%, 64%)
CMYKcmyk(72.2%, 70.4%, 0%, 36.5%)
CIE-LABlab(27.52, 37.40, -61.63)
CIE-LCHlch(27.52, 72.09, 301.25°)
OKLaboklab(39.07% 0.0104 -0.1782)
OKLCHoklch(39.07% 0.179 273.3)
XYZxyz(8.6585, 5.2796, 34.7382)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D30A2 #A29F2D
analogous
#2D6AA2 #2D30A2 #652DA2
triadic
#2D30A2 #A22D30 #30A22D
tetradic
#2D30A2 #A22D6A #A29F2D #2DA265
square
#2D30A2 #A22D6A #A29F2D #2DA265
split-complementary
#2D30A2 #A2652D #6AA22D
monochromatic
#121442 #202272 #2D30A2 #4245CA #7274D8

Accessibility & contrast

On white

10.21
#2D30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2D30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D30A2
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D30A2#FFFFFF#000000##FFFFFF
##2D30A21.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d30a2;
/* rgb */ color: rgb(45, 48, 162);
/* oklch */ color: oklch(39.1% 0.178 273.3);
Tailwind
colors: {
  custom: {
    50: '#7869bf',
    500: '#2d30a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d30a2;
$custom-light: #7869bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d30a2",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 238.462,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39072,
    "c": 0.1785,
    "h": 273.3
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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