#2A30AA#2A30AA

#2A30AA is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.190 H 271.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2A30AA
RGBrgb(42, 48, 170)
HSLhsl(237, 60%, 42%)
HSVhsv(237, 75%, 67%)
CMYKcmyk(75.3%, 71.8%, 0%, 33.3%)
CIE-LABlab(28.13, 39.88, -65.45)
CIE-LCHlch(28.13, 76.64, 301.35°)
OKLaboklab(39.71% 0.0058 -0.1894)
OKLCHoklch(39.71% 0.19 271.8)
XYZxyz(9.2650, 5.5074, 38.5972)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30AA #AAA42A
analogous
#2A70AA #2A30AA #642AAA
triadic
#2A30AA #AA2A30 #30AA2A
tetradic
#2A30AA #AA2A70 #AAA42A #2AAA64
square
#2A30AA #AA2A70 #AAA42A #2AAA64
split-complementary
#2A30AA #AA642A #70AA2A
monochromatic
#121448 #1E2279 #2A30AA #4148D0 #7277DC

Accessibility & contrast

On white

9.99
#2A30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30AA
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30AA#FFFFFF#000000##FFFFFF
##2A30AA1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a30aa;
/* rgb */ color: rgb(42, 48, 170);
/* oklch */ color: oklch(39.7% 0.190 271.8);
Tailwind
colors: {
  custom: {
    50: '#7869c4',
    500: '#2a30aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a30aa;
$custom-light: #7869c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30aa",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 237.188,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39708,
    "c": 0.18951,
    "h": 271.8
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#2A30AA
secondary
#C3BF6C
accent
#DC44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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