#2A30A9#2A30A9

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

Color values

HEX#2A30A9
RGBrgb(42, 48, 169)
HSLhsl(237, 60%, 41%)
HSVhsv(237, 75%, 66%)
CMYKcmyk(75.1%, 71.6%, 0%, 33.7%)
CIE-LABlab(28.03, 39.53, -65.02)
CIE-LCHlch(28.03, 76.09, 301.30°)
OKLaboklab(39.61% 0.006 -0.1882)
OKLCHoklch(39.61% 0.188 271.8)
XYZxyz(9.1708, 5.4698, 38.1009)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30A9 #A9A32A
analogous
#2A70A9 #2A30A9 #642AA9
triadic
#2A30A9 #A92A30 #30A92A
tetradic
#2A30A9 #A92A70 #A9A32A #2AA964
square
#2A30A9 #A92A70 #A9A32A #2AA964
split-complementary
#2A30A9 #A9642A #70A92A
monochromatic
#121447 #1E2278 #2A30A9 #4147D0 #7277DC

Accessibility & contrast

On white

10.03
#2A30A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A30A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30A9
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30A9#FFFFFF#000000##FFFFFF
##2A30A91.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003CA7
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a30a9;
/* rgb */ color: rgb(42, 48, 169);
/* oklch */ color: oklch(39.6% 0.188 271.8);
Tailwind
colors: {
  custom: {
    50: '#7869c4',
    500: '#2a30a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a30a9;
$custom-light: #7869c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30a9",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 169
  },
  "hsl": {
    "h": 237.165,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39605,
    "c": 0.18824,
    "h": 271.8
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#2A30A9
secondary
#C3BF6C
accent
#DC44E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A30A9

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

Preview Lab → · Contrast checker → · Palette generator →

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