#2A30AC#2A30AC

#2A30AC is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.192 H 271.7°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2A30AC
RGBrgb(42, 48, 172)
HSLhsl(237, 61%, 42%)
HSVhsv(237, 76%, 67%)
CMYKcmyk(75.6%, 72.1%, 0%, 32.5%)
CIE-LABlab(28.34, 40.57, -66.32)
CIE-LCHlch(28.34, 77.75, 301.46°)
OKLaboklab(39.91% 0.0055 -0.1919)
OKLCHoklch(39.91% 0.192 271.7)
XYZxyz(9.4557, 5.5837, 39.6012)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30AC #ACA62A
analogous
#2A71AC #2A30AC #652AAC
triadic
#2A30AC #AC2A30 #30AC2A
tetradic
#2A30AC #AC2A71 #ACA62A #2AAC65
square
#2A30AC #AC2A71 #ACA62A #2AAC65
split-complementary
#2A30AC #AC652A #71AC2A
monochromatic
#12154A #1E227B #2A30AC #4249D1 #7378DD

Accessibility & contrast

On white

9.92
#2A30AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A30AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30AC
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30AC#FFFFFF#000000##FFFFFF
##2A30AC1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003CAA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a30ac;
/* rgb */ color: rgb(42, 48, 172);
/* oklch */ color: oklch(39.9% 0.192 271.7);
Tailwind
colors: {
  custom: {
    50: '#7969c6',
    500: '#2a30ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a30ac;
$custom-light: #7969c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30ac",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 237.231,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39914,
    "c": 0.19203,
    "h": 271.7
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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