#2A3DAF#2A3DAF

#2A3DAF is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.181 H 269.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2A3DAF
RGBrgb(42, 61, 175)
HSLhsl(231, 61%, 43%)
HSVhsv(231, 76%, 69%)
CMYKcmyk(76%, 65.1%, 0%, 31.4%)
CIE-LABlab(31.63, 33.52, -62.70)
CIE-LCHlch(31.63, 71.09, 298.13°)
OKLaboklab(42.39% -0.0019 -0.1813)
OKLCHoklch(42.39% 0.181 269.4)
XYZxyz(10.3588, 6.9237, 41.3396)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3DAF #AF9C2A
analogous
#2A7FAF #2A3DAF #5A2AAF
triadic
#2A3DAF #AF2A3D #3DAF2A
tetradic
#2A3DAF #AF2A7F #AF9C2A #2AAF5A
square
#2A3DAF #AF2A7F #AF9C2A #2AAF5A
split-complementary
#2A3DAF #AF5A2A #7FAF2A
monochromatic
#121B4C #1E2C7E #2A3DAF #4458D2 #7584DE

Accessibility & contrast

On white

8.81
#2A3DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2A3DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3DAF
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3DAF#FFFFFF#000000##FFFFFF
##2A3DAF1.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a3daf;
/* rgb */ color: rgb(42, 61, 175);
/* oklch */ color: oklch(42.4% 0.181 269.4);
Tailwind
colors: {
  custom: {
    50: '#7872c8',
    500: '#2a3daf',
    950: '#000000',
  },
}
SCSS
$custom: #2a3daf;
$custom-light: #7872c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3daf",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 231.429,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42392,
    "c": 0.18135,
    "h": 269.4
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#2A3DAF
secondary
#C6B96F
accent
#CD43E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A3DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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