#2A3F9D#2A3F9D

#2A3F9D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.155 H 268.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2A3F9D
RGBrgb(42, 63, 157)
HSLhsl(229, 58%, 39%)
HSVhsv(229, 73%, 62%)
CMYKcmyk(73.2%, 59.9%, 0%, 38.4%)
CIE-LABlab(30.59, 25.50, -53.57)
CIE-LCHlch(30.59, 59.33, 295.45°)
OKLaboklab(41.15% -0.0029 -0.1546)
OKLCHoklch(41.15% 0.155 268.9)
XYZxyz(8.8161, 6.4807, 32.6780)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F9D #9D882A
analogous
#2A799D #2A3F9D #4E2A9D
triadic
#2A3F9D #9D2A3F #3F9D2A
tetradic
#2A3F9D #9D2A79 #9D882A #2A9D4E
square
#2A3F9D #9D2A79 #9D882A #2A9D4E
split-complementary
#2A3F9D #9D4E2A #799D2A
monochromatic
#10183C #1D2C6D #2A3F9D #3A54CA #6A7ED7

Accessibility & contrast

On white

9.14
#2A3F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2A3F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F9D
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F9D#FFFFFF#000000##FFFFFF
##2A3F9D1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a3f9d;
/* rgb */ color: rgb(42, 63, 157);
/* oklch */ color: oklch(41.1% 0.155 268.9);
Tailwind
colors: {
  custom: {
    50: '#7473bb',
    500: '#2a3f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f9d;
$custom-light: #7473bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f9d",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 229.043,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41145,
    "c": 0.15459,
    "h": 268.9
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#2A3F9D
secondary
#BEAE65
accent
#C547E1
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A3F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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