#2938B1#2938B1

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

Color values

HEX#2938B1
RGBrgb(41, 56, 177)
HSLhsl(233, 62%, 43%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(76.8%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.58, 37.33, -65.63)
CIE-LCHlch(30.58, 75.50, 299.63°)
OKLaboklab(41.66% -0.0002 -0.1899)
OKLCHoklch(41.66% 0.19 269.9)
XYZxyz(10.2617, 6.4730, 42.2950)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2938B1 #B1A229
analogous
#297CB1 #2938B1 #5E29B1
triadic
#2938B1 #B12938 #38B129
tetradic
#2938B1 #B1297C #B1A229 #29B15E
square
#2938B1 #B1297C #B1A229 #29B15E
split-complementary
#2938B1 #B15E29 #7CB129
monochromatic
#12194E #1D287F #2938B1 #4453D4 #7581DF

Accessibility & contrast

On white

9.15
#2938B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2938B1
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2938B1#FFFFFF#000000##FFFFFF
##2938B11.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2938b1;
/* rgb */ color: rgb(41, 56, 177);
/* oklch */ color: oklch(41.7% 0.190 269.9);
Tailwind
colors: {
  custom: {
    50: '#796fc9',
    500: '#2938b1',
    950: '#000000',
  },
}
SCSS
$custom: #2938b1;
$custom-light: #796fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2938b1",
  "rgb": {
    "r": 41,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 233.382,
    "s": 62.385,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41663,
    "c": 0.18995,
    "h": 269.9
  },
  "luminance": 0.06474
}

Semantic roles & 50–950 ramp

primary
#2938B1
secondary
#C7BD6F
accent
#D342E5
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2938B1

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

Preview Lab → · Contrast checker → · Palette generator →

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