#2839B0#2839B0

#2839B0 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.188 H 269.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2839B0
RGBrgb(40, 57, 176)
HSLhsl(233, 63%, 42%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.3%, 67.6%, 0%, 31%)
CIE-LABlab(30.67, 36.24, -64.88)
CIE-LCHlch(30.67, 74.32, 299.19°)
OKLaboklab(41.69% -0.0016 -0.1878)
OKLCHoklch(41.69% 0.188 269.5)
XYZxyz(10.1720, 6.5108, 41.7865)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839B0 #B09F28
analogous
#287DB0 #2839B0 #5B28B0
triadic
#2839B0 #B02839 #39B028
tetradic
#2839B0 #B0287D #B09F28 #28B05B
square
#2839B0 #B0287D #B09F28 #28B05B
split-complementary
#2839B0 #B05B28 #7DB028
monochromatic
#11194C #1D297E #2839B0 #4154D4 #7381DF

Accessibility & contrast

On white

9.12
#2839B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2839B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839B0
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839B0#FFFFFF#000000##FFFFFF
##2839B01.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2839b0;
/* rgb */ color: rgb(40, 57, 176);
/* oklch */ color: oklch(41.7% 0.188 269.5);
Tailwind
colors: {
  custom: {
    50: '#786fc9',
    500: '#2839b0',
    950: '#000000',
  },
}
SCSS
$custom: #2839b0;
$custom-light: #786fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2839b0",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 232.5,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41687,
    "c": 0.1878,
    "h": 269.5
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#2839B0
secondary
#C6BB6D
accent
#D142E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2839B0

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

Preview Lab → · Contrast checker → · Palette generator →

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