#2A3AAF#2A3AAF

#2A3AAF is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.185 H 269.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2A3AAF
RGBrgb(42, 58, 175)
HSLhsl(233, 61%, 43%)
HSVhsv(233, 76%, 69%)
CMYKcmyk(76%, 66.9%, 0%, 31.4%)
CIE-LABlab(30.91, 35.44, -63.89)
CIE-LCHlch(30.91, 73.06, 299.02°)
OKLaboklab(41.86% -0.0002 -0.1848)
OKLCHoklch(41.86% 0.185 269.9)
XYZxyz(10.2031, 6.6124, 41.2877)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AAF #AF9F2A
analogous
#2A7CAF #2A3AAF #5D2AAF
triadic
#2A3AAF #AF2A3A #3AAF2A
tetradic
#2A3AAF #AF2A7C #AF9F2A #2AAF5D
square
#2A3AAF #AF2A7C #AF9F2A #2AAF5D
split-complementary
#2A3AAF #AF5D2A #7CAF2A
monochromatic
#12194C #1E2A7E #2A3AAF #4455D2 #7582DE

Accessibility & contrast

On white

9.04
#2A3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AAF
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AAF#FFFFFF#000000##FFFFFF
##2A3AAF1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a3aaf;
/* rgb */ color: rgb(42, 58, 175);
/* oklch */ color: oklch(41.9% 0.185 269.9);
Tailwind
colors: {
  custom: {
    50: '#7970c8',
    500: '#2a3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aaf;
$custom-light: #7970c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aaf",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 232.782,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41861,
    "c": 0.18483,
    "h": 269.9
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#2A3AAF
secondary
#C6BB6F
accent
#D143E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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