#2938AB#2938AB

#2938AB is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.1% C 0.182 H 270.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2938AB
RGBrgb(41, 56, 171)
HSLhsl(233, 61%, 42%)
HSVhsv(233, 76%, 67%)
CMYKcmyk(76%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.01, 35.16, -62.97)
CIE-LCHlch(30.01, 72.12, 299.18°)
OKLaboklab(41.08% 0.0003 -0.1822)
OKLCHoklch(41.08% 0.182 270.1)
XYZxyz(9.6768, 6.2390, 39.2144)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2938AB #AB9C29
analogous
#2979AB #2938AB #5B29AB
triadic
#2938AB #AB2938 #38AB29
tetradic
#2938AB #AB2979 #AB9C29 #29AB5B
square
#2938AB #AB2979 #AB9C29 #29AB5B
split-complementary
#2938AB #AB5B29 #79AB29
monochromatic
#111848 #1D287A #2938AB #4051D1 #717EDD

Accessibility & contrast

On white

9.34
#2938AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2938AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2938AB
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2938AB#FFFFFF#000000##FFFFFF
##2938AB1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2938ab;
/* rgb */ color: rgb(41, 56, 171);
/* oklch */ color: oklch(41.1% 0.182 270.1);
Tailwind
colors: {
  custom: {
    50: '#786fc5',
    500: '#2938ab',
    950: '#000000',
  },
}
SCSS
$custom: #2938ab;
$custom-light: #786fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2938ab",
  "rgb": {
    "r": 41,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 233.077,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41078,
    "c": 0.1822,
    "h": 270.1
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#2938AB
secondary
#C4BA6C
accent
#D243E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2938AB

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

Preview Lab → · Contrast checker → · Palette generator →

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