#2838B1#2838B1

#2838B1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.190 H 269.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2838B1
RGBrgb(40, 56, 177)
HSLhsl(233, 63%, 43%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.4%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.53, 37.23, -65.71)
CIE-LCHlch(30.53, 75.52, 299.54°)
OKLaboklab(41.62% -0.0012 -0.1902)
OKLCHoklch(41.62% 0.19 269.6)
XYZxyz(10.2223, 6.4527, 42.2932)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2838B1 #B1A128
analogous
#287CB1 #2838B1 #5D28B1
triadic
#2838B1 #B12838 #38B128
tetradic
#2838B1 #B1287C #B1A128 #28B15D
square
#2838B1 #B1287C #B1A128 #28B15D
split-complementary
#2838B1 #B15D28 #7CB128
monochromatic
#11184D #1D287F #2838B1 #4253D4 #7480E0

Accessibility & contrast

On white

9.17
#2838B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2838B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2838B1
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2838B1#FFFFFF#000000##FFFFFF
##2838B11.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2838b1;
/* rgb */ color: rgb(40, 56, 177);
/* oklch */ color: oklch(41.6% 0.190 269.6);
Tailwind
colors: {
  custom: {
    50: '#796fc9',
    500: '#2838b1',
    950: '#000000',
  },
}
SCSS
$custom: #2838b1;
$custom-light: #796fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2838b1",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 232.993,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41615,
    "c": 0.19021,
    "h": 269.6
  },
  "luminance": 0.06454
}

Semantic roles & 50–950 ramp

primary
#2838B1
secondary
#C7BC6E
accent
#D342E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2838B1

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

Preview Lab → · Contrast checker → · Palette generator →

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