#2938B2#2938B2

#2938B2 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.191 H 269.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2938B2
RGBrgb(41, 56, 178)
HSLhsl(233, 63%, 43%)
HSVhsv(233, 77%, 70%)
CMYKcmyk(77%, 68.5%, 0%, 30.2%)
CIE-LABlab(30.67, 37.69, -66.06)
CIE-LCHlch(30.67, 76.06, 299.70°)
OKLaboklab(41.76% -0.0003 -0.1912)
OKLCHoklch(41.76% 0.191 269.9)
XYZxyz(10.3618, 6.5130, 42.8219)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2938B2 #B2A329
analogous
#297CB2 #2938B2 #5F29B2
triadic
#2938B2 #B22938 #38B229
tetradic
#2938B2 #B2297C #B2A329 #29B25F
square
#2938B2 #B2297C #B2A329 #29B25F
split-complementary
#2938B2 #B25F29 #7CB229
monochromatic
#12194F #1E2880 #2938B2 #4454D4 #7682DF

Accessibility & contrast

On white

9.12
#2938B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2938B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2938B2
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2938B2#FFFFFF#000000##FFFFFF
##2938B21.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)
#004FB6
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2938b2;
/* rgb */ color: rgb(41, 56, 178);
/* oklch */ color: oklch(41.8% 0.191 269.9);
Tailwind
colors: {
  custom: {
    50: '#796fca',
    500: '#2938b2',
    950: '#000000',
  },
}
SCSS
$custom: #2938b2;
$custom-light: #796fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2938b2",
  "rgb": {
    "r": 41,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 233.431,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41762,
    "c": 0.19123,
    "h": 269.9
  },
  "luminance": 0.06514
}

Semantic roles & 50–950 ramp

primary
#2938B2
secondary
#C7BD70
accent
#D442E6
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2938B2

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

Preview Lab → · Contrast checker → · Palette generator →

#2938B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva