#2A3286#2A3286

#2A3286 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.139 H 273.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2A3286
RGBrgb(42, 50, 134)
HSLhsl(235, 52%, 35%)
HSVhsv(235, 69%, 53%)
CMYKcmyk(68.7%, 62.7%, 0%, 47.5%)
CIE-LABlab(25.24, 25.62, -48.14)
CIE-LCHlch(25.24, 54.53, 298.02°)
OKLaboklab(36.57% 0.0078 -0.1388)
OKLCHoklch(36.57% 0.139 273.2)
XYZxyz(6.3971, 4.4941, 23.0800)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3286 #867E2A
analogous
#2A6086 #2A3286 #502A86
triadic
#2A3286 #862A32 #32862A
tetradic
#2A3286 #862A60 #867E2A #2A8650
square
#2A3286 #862A60 #867E2A #2A8650
split-complementary
#2A3286 #86502A #60862A
monochromatic
#0D0F29 #1B2157 #2A3286 #3943B5 #5E68CD

Accessibility & contrast

On white

11.06
#2A3286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A3286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3286
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3286#FFFFFF#000000##FFFFFF
##2A32861.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3286;
/* rgb */ color: rgb(42, 50, 134);
/* oklch */ color: oklch(36.6% 0.139 273.2);
Tailwind
colors: {
  custom: {
    50: '#706aaa',
    500: '#2a3286',
    950: '#000000',
  },
}
SCSS
$custom: #2a3286;
$custom-light: #706aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3286",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 234.783,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36574,
    "c": 0.13898,
    "h": 273.2
  },
  "luminance": 0.04495
}

Semantic roles & 50–950 ramp

primary
#2A3286
secondary
#B2AB5A
accent
#CF4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3286

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

Preview Lab → · Contrast checker → · Palette generator →

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