#2A30A8#2A30A8

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

Color values

HEX#2A30A8
RGBrgb(42, 48, 168)
HSLhsl(237, 60%, 41%)
HSVhsv(237, 75%, 66%)
CMYKcmyk(75%, 71.4%, 0%, 34.1%)
CIE-LABlab(27.93, 39.18, -64.58)
CIE-LCHlch(27.93, 75.54, 301.25°)
OKLaboklab(39.5% 0.0061 -0.1869)
OKLCHoklch(39.5% 0.187 271.9)
XYZxyz(9.0773, 5.4323, 37.6084)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30A8 #A8A22A
analogous
#2A6FA8 #2A30A8 #632AA8
triadic
#2A30A8 #A82A30 #30A82A
tetradic
#2A30A8 #A82A6F #A8A22A #2AA863
square
#2A30A8 #A82A6F #A8A22A #2AA863
split-complementary
#2A30A8 #A8632A #6FA82A
monochromatic
#121446 #1E2277 #2A30A8 #4047CF #7176DB

Accessibility & contrast

On white

10.06
#2A30A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A30A8
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30A8#FFFFFF#000000##FFFFFF
##2A30A81.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a30a8;
/* rgb */ color: rgb(42, 48, 168);
/* oklch */ color: oklch(39.5% 0.187 271.9);
Tailwind
colors: {
  custom: {
    50: '#7869c3',
    500: '#2a30a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a30a8;
$custom-light: #7869c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30a8",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 168
  },
  "hsl": {
    "h": 237.143,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39503,
    "c": 0.18698,
    "h": 271.9
  },
  "luminance": 0.05433
}

Semantic roles & 50–950 ramp

primary
#2A30A8
secondary
#C3BE6B
accent
#DC45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A30A8

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

Preview Lab → · Contrast checker → · Palette generator →

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