#2A3883#2A3883

#2A3883 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.127 H 271.0°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#2A3883
RGBrgb(42, 56, 131)
HSLhsl(231, 51%, 34%)
HSVhsv(231, 68%, 51%)
CMYKcmyk(67.9%, 57.3%, 0%, 48.6%)
CIE-LABlab(26.62, 20.40, -44.03)
CIE-LCHlch(26.62, 48.53, 294.86°)
OKLaboklab(37.52% 0.0023 -0.1266)
OKLCHoklch(37.52% 0.127 271)
XYZxyz(6.4644, 4.9587, 22.0848)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3883 #83752A
analogous
#2A6583 #2A3883 #492A83
triadic
#2A3883 #832A38 #38832A
tetradic
#2A3883 #832A65 #83752A #2A8349
square
#2A3883 #832A65 #83752A #2A8349
split-complementary
#2A3883 #83492A #65832A
monochromatic
#0C1026 #1B2455 #2A3883 #394CB1 #5D6ECB

Accessibility & contrast

On white

10.54
#2A3883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A3883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3883
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3883#FFFFFF#000000##FFFFFF
##2A38831.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3883;
/* rgb */ color: rgb(42, 56, 131);
/* oklch */ color: oklch(37.5% 0.127 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f6ea8',
    500: '#2a3883',
    950: '#000000',
  },
}
SCSS
$custom: #2a3883;
$custom-light: #6f6ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3883",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 131
  },
  "hsl": {
    "h": 230.562,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3752,
    "c": 0.12663,
    "h": 271
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

primary
#2A3883
secondary
#B1A358
accent
#C54DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3883

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

Preview Lab → · Contrast checker → · Palette generator →

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