#2839A3#2839A3

#2839A3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.171 H 269.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2839A3
RGBrgb(40, 57, 163)
HSLhsl(232, 61%, 40%)
HSVhsv(232, 75%, 64%)
CMYKcmyk(75.5%, 65%, 0%, 36.1%)
CIE-LABlab(29.46, 31.48, -59.05)
CIE-LCHlch(29.46, 66.92, 298.06°)
OKLaboklab(40.44% -0.0008 -0.1707)
OKLCHoklch(40.44% 0.171 269.7)
XYZxyz(8.9468, 6.0208, 35.3338)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839A3 #A39228
analogous
#2877A3 #2839A3 #5428A3
triadic
#2839A3 #A32839 #39A328
tetradic
#2839A3 #A32877 #A39228 #28A354
square
#2839A3 #A32877 #A39228 #28A354
split-complementary
#2839A3 #A35428 #77A328
monochromatic
#101741 #1C2872 #2839A3 #3A4ECF #6B7ADB

Accessibility & contrast

On white

9.53
#2839A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2839A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839A3
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839A3#FFFFFF#000000##FFFFFF
##2839A31.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2839a3;
/* rgb */ color: rgb(40, 57, 163);
/* oklch */ color: oklch(40.4% 0.171 269.7);
Tailwind
colors: {
  custom: {
    50: '#756fbf',
    500: '#2839a3',
    950: '#000000',
  },
}
SCSS
$custom: #2839a3;
$custom-light: #756fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2839a3",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 163
  },
  "hsl": {
    "h": 231.707,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40442,
    "c": 0.17074,
    "h": 269.7
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#2839A3
secondary
#C1B466
accent
#CE44E4
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2839A3

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

Preview Lab → · Contrast checker → · Palette generator →

#2839A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva