#2838AB#2838AB

#2838AB is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.182 H 269.8°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2838AB
RGBrgb(40, 56, 171)
HSLhsl(233, 62%, 41%)
HSVhsv(233, 77%, 67%)
CMYKcmyk(76.6%, 67.3%, 0%, 32.9%)
CIE-LABlab(29.96, 35.06, -63.06)
CIE-LCHlch(29.96, 72.15, 299.08°)
OKLaboklab(41.03% -0.0007 -0.1825)
OKLCHoklch(41.03% 0.182 269.8)
XYZxyz(9.6374, 6.2187, 39.2126)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2838AB #AB9B28
analogous
#287AAB #2838AB #5A28AB
triadic
#2838AB #AB2838 #38AB28
tetradic
#2838AB #AB287A #AB9B28 #28AB5A
square
#2838AB #AB287A #AB9B28 #28AB5A
split-complementary
#2838AB #AB5A28 #7AAB28
monochromatic
#111848 #1C2879 #2838AB #3E50D2 #707DDE

Accessibility & contrast

On white

9.36
#2838AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2838AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2838AB
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2838AB#FFFFFF#000000##FFFFFF
##2838AB1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2838ab;
/* rgb */ color: rgb(40, 56, 171);
/* oklch */ color: oklch(41.0% 0.182 269.8);
Tailwind
colors: {
  custom: {
    50: '#776fc5',
    500: '#2838ab',
    950: '#000000',
  },
}
SCSS
$custom: #2838ab;
$custom-light: #776fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2838ab",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 232.672,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.18246,
    "h": 269.8
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#2838AB
secondary
#C4B96A
accent
#D143E5
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2838AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2838AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva