#2937AF#2937AF

#2937AF is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.189 H 270.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2937AF
RGBrgb(41, 55, 175)
HSLhsl(234, 62%, 42%)
HSVhsv(234, 77%, 69%)
CMYKcmyk(76.6%, 68.6%, 0%, 31.4%)
CIE-LABlab(30.15, 37.24, -65.13)
CIE-LCHlch(30.15, 75.02, 299.76°)
OKLaboklab(41.3% 0.0005 -0.1885)
OKLCHoklch(41.3% 0.189 270.2)
XYZxyz(10.0159, 6.2978, 41.2369)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2937AF #AFA129
analogous
#297AAF #2937AF #5E29AF
triadic
#2937AF #AF2937 #37AF29
tetradic
#2937AF #AF297A #AFA129 #29AF5E
square
#2937AF #AF297A #AFA129 #29AF5E
split-complementary
#2937AF #AF5E29 #7AAF29
monochromatic
#12184C #1D277D #2937AF #4251D3 #747FDE

Accessibility & contrast

On white

9.29
#2937AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2937AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2937AF
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2937AF#FFFFFF#000000##FFFFFF
##2937AF1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2937af;
/* rgb */ color: rgb(41, 55, 175);
/* oklch */ color: oklch(41.3% 0.189 270.2);
Tailwind
colors: {
  custom: {
    50: '#796ec8',
    500: '#2937af',
    950: '#000000',
  },
}
SCSS
$custom: #2937af;
$custom-light: #796ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2937af",
  "rgb": {
    "r": 41,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 233.731,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41298,
    "c": 0.1885,
    "h": 270.2
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#2937AF
secondary
#C6BD6E
accent
#D443E5
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2937AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2937AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva