#2A3D9B#2A3D9B

#2A3D9B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.154 H 269.5°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#2A3D9B
RGBrgb(42, 61, 155)
HSLhsl(230, 57%, 39%)
HSVhsv(230, 73%, 61%)
CMYKcmyk(72.9%, 60.6%, 0%, 39.2%)
CIE-LABlab(29.90, 26.08, -53.49)
CIE-LCHlch(29.90, 59.51, 296.00°)
OKLaboklab(40.58% -0.0014 -0.1543)
OKLCHoklch(40.58% 0.154 269.5)
XYZxyz(8.5380, 6.1954, 31.7499)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D9B #9B882A
analogous
#2A759B #2A3D9B #502A9B
triadic
#2A3D9B #9B2A3D #3D9B2A
tetradic
#2A3D9B #9B2A75 #9B882A #2A9B50
square
#2A3D9B #9B2A75 #9B882A #2A9B50
split-complementary
#2A3D9B #9B502A #759B2A
monochromatic
#10173B #1D2A6B #2A3D9B #3951C9 #697BD6

Accessibility & contrast

On white

9.38
#2A3D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A3D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D9B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D9B#FFFFFF#000000##FFFFFF
##2A3D9B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3d9b;
/* rgb */ color: rgb(42, 61, 155);
/* oklch */ color: oklch(40.6% 0.154 269.5);
Tailwind
colors: {
  custom: {
    50: '#7472b9',
    500: '#2a3d9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d9b;
$custom-light: #7472b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d9b",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 155
  },
  "hsl": {
    "h": 229.912,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.15435,
    "h": 269.5
  },
  "luminance": 0.06196
}

Semantic roles & 50–950 ramp

primary
#2A3D9B
secondary
#BDAE64
accent
#C747E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A3D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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