#2F37CF#2F37CF

#2F37CF is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.8% C 0.226 H 270.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2F37CF
RGBrgb(47, 55, 207)
HSLhsl(237, 63%, 50%)
HSVhsv(237, 77%, 81%)
CMYKcmyk(77.3%, 73.4%, 0%, 18.8%)
CIE-LABlab(33.65, 48.78, -78.19)
CIE-LCHlch(33.65, 92.16, 301.96°)
OKLaboklab(44.85% 0.0026 -0.2264)
OKLCHoklch(44.85% 0.226 270.7)
XYZxyz(13.7971, 7.8402, 59.8055)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37CF #CFC72F
analogous
#2F87CF #2F37CF #772FCF
triadic
#2F37CF #CF2F37 #37CF2F
tetradic
#2F37CF #CF2F87 #CFC72F #2FCF77
square
#2F37CF #CF2F87 #CFC72F #2FCF77
split-complementary
#2F37CF #CF772F #87CF2F
monochromatic
#181C6B #242A9D #2F37CF #6066DB #9296E6

Accessibility & contrast

On white

8.18
#2F37CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F37CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37CF
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37CF#FFFFFF#000000##FFFFFF
##2F37CF1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D3
Deuteranopia (green-blind)
#0047CC
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f37cf;
/* rgb */ color: rgb(47, 55, 207);
/* oklch */ color: oklch(44.8% 0.226 270.7);
Tailwind
colors: {
  custom: {
    50: '#826fdf',
    500: '#2f37cf',
    950: '#000000',
  },
}
SCSS
$custom: #2f37cf;
$custom-light: #826fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37cf",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 237,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44848,
    "c": 0.22644,
    "h": 270.7
  },
  "luminance": 0.07842
}

Semantic roles & 50–950 ramp

primary
#2F37CF
secondary
#D1CD89
accent
#DE42E6
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #2F37CF

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

Preview Lab → · Contrast checker → · Palette generator →

#2F37CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva