#2A30B7#2A30B7

#2A30B7 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.206 H 271.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2A30B7
RGBrgb(42, 48, 183)
HSLhsl(237, 63%, 44%)
HSVhsv(237, 77%, 72%)
CMYKcmyk(77%, 73.8%, 0%, 28.2%)
CIE-LABlab(29.47, 44.34, -71.01)
CIE-LCHlch(29.47, 83.72, 301.98°)
OKLaboklab(41.06% 0.0039 -0.2056)
OKLCHoklch(41.06% 0.206 271.1)
XYZxyz(10.5561, 6.0239, 45.3970)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30B7 #B7B12A
analogous
#2A77B7 #2A30B7 #6B2AB7
triadic
#2A30B7 #B72A30 #30B72A
tetradic
#2A30B7 #B72A77 #B7B12A #2AB76B
square
#2A30B7 #B72A77 #B7B12A #2AB76B
split-complementary
#2A30B7 #B76B2A #77B72A
monochromatic
#131653 #1F2385 #2A30B7 #494FD5 #7B7FE1

Accessibility & contrast

On white

9.52
#2A30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30B7
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30B7#FFFFFF#000000##FFFFFF
##2A30B71.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003EB5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a30b7;
/* rgb */ color: rgb(42, 48, 183);
/* oklch */ color: oklch(41.1% 0.206 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c6ace',
    500: '#2a30b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a30b7;
$custom-light: #7c6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30b7",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 237.447,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41064,
    "c": 0.20565,
    "h": 271.1
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#2A30B7
secondary
#C9C574
accent
#DF42E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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