#2A30A2#2A30A2

#2A30A2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.179 H 272.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2A30A2
RGBrgb(42, 48, 162)
HSLhsl(237, 59%, 40%)
HSVhsv(237, 74%, 64%)
CMYKcmyk(74.1%, 70.4%, 0%, 36.5%)
CIE-LABlab(27.34, 37.08, -61.94)
CIE-LCHlch(27.34, 72.19, 300.91°)
OKLaboklab(38.89% 0.0069 -0.1792)
OKLCHoklch(38.89% 0.179 272.2)
XYZxyz(8.5312, 5.2139, 34.7322)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30A2 #A29C2A
analogous
#2A6CA2 #2A30A2 #602AA2
triadic
#2A30A2 #A22A30 #30A22A
tetradic
#2A30A2 #A22A6C #A29C2A #2AA260
square
#2A30A2 #A22A6C #A29C2A #2AA260
split-complementary
#2A30A2 #A2602A #6CA22A
monochromatic
#111341 #1D2271 #2A30A2 #3D44CD #6D73D9

Accessibility & contrast

On white

10.28
#2A30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30A2
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30A2#FFFFFF#000000##FFFFFF
##2A30A21.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a30a2;
/* rgb */ color: rgb(42, 48, 162);
/* oklch */ color: oklch(38.9% 0.179 272.2);
Tailwind
colors: {
  custom: {
    50: '#7769bf',
    500: '#2a30a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a30a2;
$custom-light: #7769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30a2",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 237,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38893,
    "c": 0.1793,
    "h": 272.2
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#2A30A2
secondary
#C0BC68
accent
#DA46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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