#2A30B5#2A30B5

#2A30B5 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.203 H 271.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2A30B5
RGBrgb(42, 48, 181)
HSLhsl(237, 62%, 44%)
HSVhsv(237, 77%, 71%)
CMYKcmyk(76.8%, 73.5%, 0%, 29%)
CIE-LABlab(29.26, 43.66, -70.17)
CIE-LCHlch(29.26, 82.64, 301.89°)
OKLaboklab(40.85% 0.0042 -0.2031)
OKLCHoklch(40.85% 0.203 271.2)
XYZxyz(10.3495, 5.9412, 44.3084)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30B5 #B5AF2A
analogous
#2A75B5 #2A30B5 #692AB5
triadic
#2A30B5 #B52A30 #30B52A
tetradic
#2A30B5 #B52A75 #B5AF2A #2AB569
square
#2A30B5 #B52A75 #B5AF2A #2AB569
split-complementary
#2A30B5 #B5692A #75B52A
monochromatic
#131652 #1E2383 #2A30B5 #484ED4 #797EE0

Accessibility & contrast

On white

9.60
#2A30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30B5
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30B5#FFFFFF#000000##FFFFFF
##2A30B51.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#003EB3
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a30b5;
/* rgb */ color: rgb(42, 48, 181);
/* oklch */ color: oklch(40.9% 0.203 271.2);
Tailwind
colors: {
  custom: {
    50: '#7b6acc',
    500: '#2a30b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a30b5;
$custom-light: #7b6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30b5",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 237.41,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40853,
    "c": 0.20319,
    "h": 271.2
  },
  "luminance": 0.05942
}

Semantic roles & 50–950 ramp

primary
#2A30B5
secondary
#C8C473
accent
#DE42E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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