#2A3C83#2A3C83

#2A3C83 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.121 H 269.3°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A3C83
RGBrgb(42, 60, 131)
HSLhsl(228, 51%, 34%)
HSVhsv(228, 68%, 51%)
CMYKcmyk(67.9%, 54.2%, 0%, 48.6%)
CIE-LABlab(27.74, 17.65, -42.21)
CIE-LCHlch(27.74, 45.75, 292.69°)
OKLaboklab(38.37% -0.0016 -0.1212)
OKLCHoklch(38.37% 0.121 269.3)
XYZxyz(6.6660, 5.3620, 22.1520)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C83 #83712A
analogous
#2A6983 #2A3C83 #452A83
triadic
#2A3C83 #832A3C #3C832A
tetradic
#2A3C83 #832A69 #83712A #2A8345
square
#2A3C83 #832A69 #83712A #2A8345
split-complementary
#2A3C83 #83452A #69832A
monochromatic
#0C1226 #1B2755 #2A3C83 #3951B1 #5D73CB

Accessibility & contrast

On white

10.13
#2A3C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A3C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C83
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C83#FFFFFF#000000##FFFFFF
##2A3C831.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4686
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3c83;
/* rgb */ color: rgb(42, 60, 131);
/* oklch */ color: oklch(38.4% 0.121 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e71a8',
    500: '#2a3c83',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c83;
$custom-light: #6e71a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c83",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 131
  },
  "hsl": {
    "h": 227.865,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38367,
    "c": 0.12121,
    "h": 269.3
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#2A3C83
secondary
#B19F58
accent
#BE4DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A3C83

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

Preview Lab → · Contrast checker → · Palette generator →

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