#2A30A3#2A30A3

#2A30A3 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.181 H 272.1°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2A30A3
RGBrgb(42, 48, 163)
HSLhsl(237, 59%, 40%)
HSVhsv(237, 74%, 64%)
CMYKcmyk(74.2%, 70.6%, 0%, 36.1%)
CIE-LABlab(27.43, 37.43, -62.38)
CIE-LCHlch(27.43, 72.75, 300.96°)
OKLaboklab(38.99% 0.0068 -0.1805)
OKLCHoklch(38.99% 0.181 272.1)
XYZxyz(8.6204, 5.2496, 35.2022)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30A3 #A39D2A
analogous
#2A6CA3 #2A30A3 #612AA3
triadic
#2A30A3 #A32A30 #30A32A
tetradic
#2A30A3 #A32A6C #A39D2A #2AA361
square
#2A30A3 #A32A6C #A39D2A #2AA361
split-complementary
#2A30A3 #A3612A #6CA32A
monochromatic
#111342 #1D2272 #2A30A3 #3D44CD #6E73DA

Accessibility & contrast

On white

10.24
#2A30A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A30A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30A3
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30A3#FFFFFF#000000##FFFFFF
##2A30A31.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a30a3;
/* rgb */ color: rgb(42, 48, 163);
/* oklch */ color: oklch(39.0% 0.181 272.1);
Tailwind
colors: {
  custom: {
    50: '#7769bf',
    500: '#2a30a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a30a3;
$custom-light: #7769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30a3",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 163
  },
  "hsl": {
    "h": 237.025,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38994,
    "c": 0.18059,
    "h": 272.1
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

primary
#2A30A3
secondary
#C0BC68
accent
#DA46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A30A3

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

Preview Lab → · Contrast checker → · Palette generator →

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