#2A3F9B#2A3F9B

#2A3F9B is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.152 H 268.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2A3F9B
RGBrgb(42, 63, 155)
HSLhsl(229, 57%, 39%)
HSVhsv(229, 73%, 61%)
CMYKcmyk(72.9%, 59.4%, 0%, 39.2%)
CIE-LABlab(30.43, 24.74, -52.62)
CIE-LCHlch(30.43, 58.15, 295.18°)
OKLaboklab(40.97% -0.003 -0.1518)
OKLCHoklch(40.97% 0.152 268.9)
XYZxyz(8.6467, 6.4129, 31.7861)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F9B #9B862A
analogous
#2A779B #2A3F9B #4E2A9B
triadic
#2A3F9B #9B2A3F #3F9B2A
tetradic
#2A3F9B #9B2A77 #9B862A #2A9B4E
square
#2A3F9B #9B2A77 #9B862A #2A9B4E
split-complementary
#2A3F9B #9B4E2A #779B2A
monochromatic
#10183B #1D2B6B #2A3F9B #3954C9 #697DD6

Accessibility & contrast

On white

9.20
#2A3F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A3F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F9B
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F9B#FFFFFF#000000##FFFFFF
##2A3F9B1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a3f9b;
/* rgb */ color: rgb(42, 63, 155);
/* oklch */ color: oklch(41.0% 0.152 268.9);
Tailwind
colors: {
  custom: {
    50: '#7473b9',
    500: '#2a3f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f9b;
$custom-light: #7473b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f9b",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 228.85,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40972,
    "c": 0.1518,
    "h": 268.9
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

primary
#2A3F9B
secondary
#BDAC64
accent
#C447E1
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A3F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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