#2A30B2#2A30B2

#2A30B2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.200 H 271.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A30B2
RGBrgb(42, 48, 178)
HSLhsl(237, 62%, 43%)
HSVhsv(237, 76%, 70%)
CMYKcmyk(76.4%, 73%, 0%, 30.2%)
CIE-LABlab(28.95, 42.64, -68.89)
CIE-LCHlch(28.95, 81.02, 301.75°)
OKLaboklab(40.54% 0.0046 -0.1994)
OKLCHoklch(40.54% 0.2 271.3)
XYZxyz(10.0450, 5.8194, 42.7047)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30B2 #B2AC2A
analogous
#2A74B2 #2A30B2 #682AB2
triadic
#2A30B2 #B22A30 #30B22A
tetradic
#2A30B2 #B22A74 #B2AC2A #2AB268
square
#2A30B2 #B22A74 #B2AC2A #2AB268
split-complementary
#2A30B2 #B2682A #74B22A
monochromatic
#13154F #1E2380 #2A30B2 #464CD3 #777CDF

Accessibility & contrast

On white

9.70
#2A30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30B2
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30B2#FFFFFF#000000##FFFFFF
##2A30B21.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a30b2;
/* rgb */ color: rgb(42, 48, 178);
/* oklch */ color: oklch(40.5% 0.200 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a69ca',
    500: '#2a30b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a30b2;
$custom-light: #7a69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30b2",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 237.353,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40538,
    "c": 0.1995,
    "h": 271.3
  },
  "luminance": 0.0582
}

Semantic roles & 50–950 ramp

primary
#2A30B2
secondary
#C7C371
accent
#DE43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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