#2A30A7#2A30A7

#2A30A7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.186 H 271.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2A30A7
RGBrgb(42, 48, 167)
HSLhsl(237, 60%, 41%)
HSVhsv(237, 75%, 65%)
CMYKcmyk(74.9%, 71.3%, 0%, 34.5%)
CIE-LABlab(27.83, 38.83, -64.14)
CIE-LCHlch(27.83, 74.98, 301.19°)
OKLaboklab(39.4% 0.0062 -0.1856)
OKLCHoklch(39.4% 0.186 271.9)
XYZxyz(8.9845, 5.3952, 37.1196)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30A7 #A7A12A
analogous
#2A6EA7 #2A30A7 #622AA7
triadic
#2A30A7 #A72A30 #30A72A
tetradic
#2A30A7 #A72A6E #A7A12A #2AA762
square
#2A30A7 #A72A6E #A7A12A #2AA762
split-complementary
#2A30A7 #A7622A #6EA72A
monochromatic
#111445 #1E2276 #2A30A7 #3F46CF #7075DB

Accessibility & contrast

On white

10.10
#2A30A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2A30A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30A7
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30A7#FFFFFF#000000##FFFFFF
##2A30A71.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a30a7;
/* rgb */ color: rgb(42, 48, 167);
/* oklch */ color: oklch(39.4% 0.186 271.9);
Tailwind
colors: {
  custom: {
    50: '#7869c2',
    500: '#2a30a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a30a7;
$custom-light: #7869c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30a7",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 167
  },
  "hsl": {
    "h": 237.12,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.394,
    "c": 0.1857,
    "h": 271.9
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#2A30A7
secondary
#C2BE6B
accent
#DB45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A30A7

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

Preview Lab → · Contrast checker → · Palette generator →

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