#2A3FB6#2A3FB6

#2A3FB6 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.188 H 268.9°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2A3FB6
RGBrgb(42, 63, 182)
HSLhsl(231, 63%, 44%)
HSVhsv(231, 77%, 71%)
CMYKcmyk(76.9%, 65.4%, 0%, 28.6%)
CIE-LABlab(32.75, 34.79, -65.02)
CIE-LCHlch(32.75, 73.74, 298.15°)
OKLaboklab(43.41% -0.0035 -0.1881)
OKLCHoklch(43.41% 0.188 268.9)
XYZxyz(11.1729, 7.4234, 45.0909)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3FB6 #B6A12A
analogous
#2A85B6 #2A3FB6 #5B2AB6
triadic
#2A3FB6 #B62A3F #3FB62A
tetradic
#2A3FB6 #B62A85 #B6A12A #2AB65B
square
#2A3FB6 #B62A85 #B6A12A #2AB65B
split-complementary
#2A3FB6 #B65B2A #85B62A
monochromatic
#131D53 #1F2E84 #2A3FB6 #485DD5 #7A89E0

Accessibility & contrast

On white

8.45
#2A3FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2A3FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3FB6
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3FB6#FFFFFF#000000##FFFFFF
##2A3FB61.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a3fb6;
/* rgb */ color: rgb(42, 63, 182);
/* oklch */ color: oklch(43.4% 0.188 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a74cd',
    500: '#2a3fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2a3fb6;
$custom-light: #7a74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3fb6",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 182
  },
  "hsl": {
    "h": 231,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43406,
    "c": 0.18815,
    "h": 268.9
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#2A3FB6
secondary
#C8BC73
accent
#CD42E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2A3FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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