#2A30A6#2A30A6

#2A30A6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.184 H 272.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2A30A6
RGBrgb(42, 48, 166)
HSLhsl(237, 60%, 41%)
HSVhsv(237, 75%, 65%)
CMYKcmyk(74.7%, 71.1%, 0%, 34.9%)
CIE-LABlab(27.73, 38.48, -63.70)
CIE-LCHlch(27.73, 74.43, 301.14°)
OKLaboklab(39.3% 0.0064 -0.1843)
OKLCHoklch(39.3% 0.184 272)
XYZxyz(8.8924, 5.3584, 36.6346)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A30A6 #A6A02A
analogous
#2A6EA6 #2A30A6 #622AA6
triadic
#2A30A6 #A62A30 #30A62A
tetradic
#2A30A6 #A62A6E #A6A02A #2AA662
square
#2A30A6 #A62A6E #A6A02A #2AA662
split-complementary
#2A30A6 #A6622A #6EA62A
monochromatic
#111444 #1E2275 #2A30A6 #3F46CE #7075DB

Accessibility & contrast

On white

10.14
#2A30A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A30A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A30A6
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A30A6#FFFFFF#000000##FFFFFF
##2A30A61.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a30a6;
/* rgb */ color: rgb(42, 48, 166);
/* oklch */ color: oklch(39.3% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#7769c2',
    500: '#2a30a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a30a6;
$custom-light: #7769c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a30a6",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 237.097,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39298,
    "c": 0.18443,
    "h": 272
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#2A30A6
secondary
#C2BE6A
accent
#DB45E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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