#2A3783#2A3783

#2A3783 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.128 H 271.5°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2A3783
RGBrgb(42, 55, 131)
HSLhsl(231, 51%, 34%)
HSVhsv(231, 68%, 51%)
CMYKcmyk(67.9%, 58%, 0%, 48.6%)
CIE-LABlab(26.34, 21.09, -44.48)
CIE-LCHlch(26.34, 49.23, 295.37°)
OKLaboklab(37.31% 0.0032 -0.1279)
OKLCHoklch(37.31% 0.128 271.5)
XYZxyz(6.4164, 4.8627, 22.0688)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3783 #83762A
analogous
#2A6483 #2A3783 #4A2A83
triadic
#2A3783 #832A37 #37832A
tetradic
#2A3783 #832A64 #83762A #2A834A
square
#2A3783 #832A64 #83762A #2A834A
split-complementary
#2A3783 #834A2A #64832A
monochromatic
#0C1026 #1B2455 #2A3783 #394AB1 #5D6DCB

Accessibility & contrast

On white

10.65
#2A3783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A3783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3783
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3783#FFFFFF#000000##FFFFFF
##2A37831.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3783;
/* rgb */ color: rgb(42, 55, 131);
/* oklch */ color: oklch(37.3% 0.128 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f6da8',
    500: '#2a3783',
    950: '#000000',
  },
}
SCSS
$custom: #2a3783;
$custom-light: #6f6da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3783",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 131
  },
  "hsl": {
    "h": 231.236,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37313,
    "c": 0.12799,
    "h": 271.5
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#2A3783
secondary
#B1A458
accent
#C64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3783

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

Preview Lab → · Contrast checker → · Palette generator →

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