#2838B0#2838B0

#2838B0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.189 H 269.7°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2838B0
RGBrgb(40, 56, 176)
HSLhsl(233, 63%, 42%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.3%, 68.2%, 0%, 31%)
CIE-LABlab(30.43, 36.87, -65.27)
CIE-LCHlch(30.43, 74.96, 299.46°)
OKLaboklab(41.52% -0.0011 -0.1889)
OKLCHoklch(41.52% 0.189 269.7)
XYZxyz(10.1230, 6.4129, 41.7702)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2838B0 #B0A028
analogous
#287CB0 #2838B0 #5C28B0
triadic
#2838B0 #B02838 #38B028
tetradic
#2838B0 #B0287C #B0A028 #28B05C
square
#2838B0 #B0287C #B0A028 #28B05C
split-complementary
#2838B0 #B05C28 #7CB028
monochromatic
#11184C #1D287E #2838B0 #4153D4 #7380DF

Accessibility & contrast

On white

9.20
#2838B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2838B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2838B0
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2838B0#FFFFFF#000000##FFFFFF
##2838B01.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#0041AE
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2838b0;
/* rgb */ color: rgb(40, 56, 176);
/* oklch */ color: oklch(41.5% 0.189 269.7);
Tailwind
colors: {
  custom: {
    50: '#796fc9',
    500: '#2838b0',
    950: '#000000',
  },
}
SCSS
$custom: #2838b0;
$custom-light: #796fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2838b0",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 232.941,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41516,
    "c": 0.18892,
    "h": 269.7
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2838B0

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

Preview Lab → · Contrast checker → · Palette generator →

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