#2F38CF#2F38CF

#2F38CF is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 45.0% C 0.225 H 270.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2F38CF
RGBrgb(47, 56, 207)
HSLhsl(237, 63%, 50%)
HSVhsv(237, 77%, 81%)
CMYKcmyk(77.3%, 72.9%, 0%, 18.8%)
CIE-LABlab(33.85, 48.21, -77.86)
CIE-LCHlch(33.85, 91.58, 301.77°)
OKLaboklab(44.99% 0.0022 -0.2255)
OKLCHoklch(44.99% 0.225 270.6)
XYZxyz(13.8451, 7.9361, 59.8215)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38CF #CFC62F
analogous
#2F88CF #2F38CF #762FCF
triadic
#2F38CF #CF2F38 #38CF2F
tetradic
#2F38CF #CF2F88 #CFC62F #2FCF76
square
#2F38CF #CF2F88 #CFC62F #2FCF76
split-complementary
#2F38CF #CF762F #88CF2F
monochromatic
#181D6B #242B9D #2F38CF #6067DB #9297E6

Accessibility & contrast

On white

8.12
#2F38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F38CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38CF
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38CF#FFFFFF#000000##FFFFFF
##2F38CF1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D3
Deuteranopia (green-blind)
#0048CC
Tritanopia (blue-blind)
#006480
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f38cf;
/* rgb */ color: rgb(47, 56, 207);
/* oklch */ color: oklch(45.0% 0.225 270.6);
Tailwind
colors: {
  custom: {
    50: '#8270df',
    500: '#2f38cf',
    950: '#000000',
  },
}
SCSS
$custom: #2f38cf;
$custom-light: #8270df;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38cf",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 236.625,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44992,
    "c": 0.22548,
    "h": 270.6
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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