#2A30B0#2A30B0

#2A30B0 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.197 H 271.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2A30B0
RGBrgb(42, 48, 176)
HSLhsl(237, 61%, 43%)
HSVhsv(237, 76%, 69%)
CMYKcmyk(76.1%, 72.7%, 0%, 31%)
CIE-LABlab(28.75, 41.95, -68.04)
CIE-LCHlch(28.75, 79.93, 301.66°)
OKLaboklab(40.33% 0.005 -0.197)
OKLCHoklch(40.33% 0.197 271.4)
XYZxyz(9.8456, 5.7397, 41.6549)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30B0 #B0AA2A
analogous
#2A73B0 #2A30B0 #672AB0
triadic
#2A30B0 #B02A30 #30B02A
tetradic
#2A30B0 #B02A73 #B0AA2A #2AB067
square
#2A30B0 #B02A73 #B0AA2A #2AB067
split-complementary
#2A30B0 #B0672A #73B02A
monochromatic
#12154D #1E237F #2A30B0 #454BD3 #767BDE

Accessibility & contrast

On white

9.78
#2A30B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A30B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30B0
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30B0#FFFFFF#000000##FFFFFF
##2A30B01.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a30b0;
/* rgb */ color: rgb(42, 48, 176);
/* oklch */ color: oklch(40.3% 0.197 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a69c9',
    500: '#2a30b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a30b0;
$custom-light: #7a69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30b0",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 176
  },
  "hsl": {
    "h": 237.313,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40329,
    "c": 0.19702,
    "h": 271.4
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#2A30B0
secondary
#C6C270
accent
#DD43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A30B0

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

Preview Lab → · Contrast checker → · Palette generator →

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