#2A30A4#2A30A4

#2A30A4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.182 H 272.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2A30A4
RGBrgb(42, 48, 164)
HSLhsl(237, 59%, 40%)
HSVhsv(237, 74%, 64%)
CMYKcmyk(74.4%, 70.7%, 0%, 35.7%)
CIE-LABlab(27.53, 37.78, -62.82)
CIE-LCHlch(27.53, 73.31, 301.02°)
OKLaboklab(39.1% 0.0066 -0.1817)
OKLCHoklch(39.1% 0.182 272.1)
XYZxyz(8.7104, 5.2856, 35.6759)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30A4 #A49E2A
analogous
#2A6DA4 #2A30A4 #612AA4
triadic
#2A30A4 #A42A30 #30A42A
tetradic
#2A30A4 #A42A6D #A49E2A #2AA461
square
#2A30A4 #A42A6D #A49E2A #2AA461
split-complementary
#2A30A4 #A4612A #6DA42A
monochromatic
#111343 #1E2273 #2A30A4 #3E45CD #6E74DA

Accessibility & contrast

On white

10.21
#2A30A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A30A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30A4
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30A4#FFFFFF#000000##FFFFFF
##2A30A41.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a30a4;
/* rgb */ color: rgb(42, 48, 164);
/* oklch */ color: oklch(39.1% 0.182 272.1);
Tailwind
colors: {
  custom: {
    50: '#7769c0',
    500: '#2a30a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a30a4;
$custom-light: #7769c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30a4",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 237.049,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39095,
    "c": 0.18187,
    "h": 272.1
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#2A30A4
secondary
#C1BD69
accent
#DB45E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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