#2938C6#2938C6

#2938C6 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 43.8% C 0.216 H 269.3°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2938C6
RGBrgb(41, 56, 198)
HSLhsl(234, 66%, 47%)
HSVhsv(234, 79%, 78%)
CMYKcmyk(79.3%, 71.7%, 0%, 22.4%)
CIE-LABlab(32.65, 44.71, -74.61)
CIE-LCHlch(32.65, 86.98, 300.93°)
OKLaboklab(43.78% -0.0025 -0.2161)
OKLCHoklch(43.78% 0.216 269.3)
XYZxyz(12.5182, 7.3755, 54.1790)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2938C6 #C6B729
analogous
#2986C6 #2938C6 #6929C6
triadic
#2938C6 #C62938 #38C629
tetradic
#2938C6 #C62986 #C6B729 #29C669
square
#2938C6 #C62986 #C6B729 #29C669
split-complementary
#2938C6 #C66929 #86C629
monochromatic
#141B61 #1F2A93 #2938C6 #515EDB #848DE6

Accessibility & contrast

On white

8.48
#2938C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2938C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2938C6
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2938C6#FFFFFF#000000##FFFFFF
##2938C61.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CA
Deuteranopia (green-blind)
#0045C3
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2938c6;
/* rgb */ color: rgb(41, 56, 198);
/* oklch */ color: oklch(43.8% 0.216 269.3);
Tailwind
colors: {
  custom: {
    50: '#7e6fd9',
    500: '#2938c6',
    950: '#000000',
  },
}
SCSS
$custom: #2938c6;
$custom-light: #7e6fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2938c6",
  "rgb": {
    "r": 41,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 234.268,
    "s": 65.69,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43781,
    "c": 0.21614,
    "h": 269.3
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#2938C6
secondary
#CFC77C
accent
#D83FE9
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2938C6

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

Preview Lab → · Contrast checker → · Palette generator →

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