#2F2DC8#2F2DC8

#2F2DC8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.8% C 0.227 H 271.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2F2DC8
RGBrgb(47, 45, 200)
HSLhsl(241, 63%, 48%)
HSVhsv(241, 78%, 78%)
CMYKcmyk(76.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(31.00, 51.92, -78.50)
CIE-LCHlch(31.00, 94.12, 303.48°)
OKLaboklab(42.75% 0.0075 -0.2272)
OKLCHoklch(42.75% 0.227 271.9)
XYZxyz(12.5325, 6.6499, 55.2554)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DC8 #C6C82D
analogous
#2D78C8 #2F2DC8 #7C2DC8
triadic
#2F2DC8 #C82F2D #2DC82F
tetradic
#2F2DC8 #C82D78 #C6C82D #2DC87C
square
#2F2DC8 #C82D78 #C6C82D #2DC87C
split-complementary
#2F2DC8 #C87C2D #78C82D
monochromatic
#181764 #232296 #2F2DC8 #5A59DA #8C8BE5

Accessibility & contrast

On white

9.01
#2F2DC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F2DC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DC8
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DC8#FFFFFF#000000##FFFFFF
##2F2DC81.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050CC
Deuteranopia (green-blind)
#0041C5
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f2dc8;
/* rgb */ color: rgb(47, 45, 200);
/* oklch */ color: oklch(42.8% 0.227 271.9);
Tailwind
colors: {
  custom: {
    50: '#8269da',
    500: '#2f2dc8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2dc8;
$custom-light: #8269da;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2dc8",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 240.774,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.22735,
    "h": 271.9
  },
  "luminance": 0.06651
}

Semantic roles & 50–950 ramp

primary
#2F2DC8
secondary
#CECF82
accent
#E641E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2F2DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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