#2A30B1#2A30B1

#2A30B1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.198 H 271.4°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2A30B1
RGBrgb(42, 48, 177)
HSLhsl(237, 62%, 43%)
HSVhsv(237, 76%, 69%)
CMYKcmyk(76.3%, 72.9%, 0%, 30.6%)
CIE-LABlab(28.85, 42.29, -68.47)
CIE-LCHlch(28.85, 80.48, 301.70°)
OKLaboklab(40.43% 0.0048 -0.1982)
OKLCHoklch(40.43% 0.198 271.4)
XYZxyz(9.9449, 5.7794, 42.1779)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30B1 #B1AB2A
analogous
#2A74B1 #2A30B1 #672AB1
triadic
#2A30B1 #B12A30 #30B12A
tetradic
#2A30B1 #B12A74 #B1AB2A #2AB167
square
#2A30B1 #B12A74 #B1AB2A #2AB167
split-complementary
#2A30B1 #B1672A #74B12A
monochromatic
#13154E #1E2380 #2A30B1 #454CD3 #777BDF

Accessibility & contrast

On white

9.74
#2A30B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A30B1
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30B1#FFFFFF#000000##FFFFFF
##2A30B11.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a30b1;
/* rgb */ color: rgb(42, 48, 177);
/* oklch */ color: oklch(40.4% 0.198 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a69ca',
    500: '#2a30b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a30b1;
$custom-light: #7a69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30b1",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 237.333,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40434,
    "c": 0.19827,
    "h": 271.4
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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