#2F08D2#2F08D2

#2F08D2 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 41.0% C 0.258 H 272.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2F08D2
RGBrgb(47, 8, 210)
HSLhsl(252, 93%, 43%)
HSVhsv(252, 96%, 82%)
CMYKcmyk(77.6%, 96.2%, 0%, 17.6%)
CIE-LABlab(27.93, 67.54, -89.44)
CIE-LCHlch(27.93, 112.07, 307.06°)
OKLaboklab(41% 0.0114 -0.2582)
OKLCHoklch(41% 0.258 272.5)
XYZxyz(12.8881, 5.4297, 61.3291)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F08D2 #ABD208
analogous
#0846D2 #2F08D2 #9408D2
triadic
#2F08D2 #D22F08 #08D22F
tetradic
#2F08D2 #D20846 #ABD208 #08D294
square
#2F08D2 #D20846 #ABD208 #08D294
split-complementary
#2F08D2 #D29408 #46D208
monochromatic
#15045C #220697 #2F08D2 #4A21F7 #7A5CF9

Accessibility & contrast

On white

10.07
#2F08D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F08D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F08D2
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F08D2#FFFFFF#000000##FFFFFF
##2F08D21.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AD7
Deuteranopia (green-blind)
#0038CF
Tritanopia (blue-blind)
#00577B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f08d2;
/* rgb */ color: rgb(47, 8, 210);
/* oklch */ color: oklch(41.0% 0.258 272.5);
Tailwind
colors: {
  custom: {
    50: '#865be2',
    500: '#2f08d2',
    950: '#000000',
  },
}
SCSS
$custom: #2f08d2;
$custom-light: #865be2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f08d2",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 210
  },
  "hsl": {
    "h": 251.584,
    "s": 92.661,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40995,
    "c": 0.25847,
    "h": 272.5
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#2F08D2
secondary
#C3DC5A
accent
#FF29D6
background
#F9F5FE
surface
#F2E9FC
border
#CCC5D5
text
#0E0516
muted
#7E7984

Preview Lab

Preview with #2F08D2

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

Preview Lab → · Contrast checker → · Palette generator →

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