#2F30CA#2F30CA

#2F30CA is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.4% C 0.227 H 271.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2F30CA
RGBrgb(47, 48, 202)
HSLhsl(240, 62%, 49%)
HSVhsv(240, 77%, 79%)
CMYKcmyk(76.7%, 76.2%, 0%, 20.8%)
CIE-LABlab(31.76, 50.98, -78.40)
CIE-LCHlch(31.76, 93.52, 303.04°)
OKLaboklab(43.36% 0.006 -0.227)
OKLCHoklch(43.36% 0.227 271.5)
XYZxyz(12.8863, 6.9811, 56.5340)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30CA #CAC92F
analogous
#2F7ECA #2F30CA #7C2FCA
triadic
#2F30CA #CA2F30 #30CA2F
tetradic
#2F30CA #CA2F7E #CAC92F #2FCA7C
square
#2F30CA #CA2F7E #CAC92F #2FCA7C
split-complementary
#2F30CA #CA7C2F #7ECA2F
monochromatic
#181867 #232498 #2F30CA #5D5ED9 #8F8FE5

Accessibility & contrast

On white

8.76
#2F30CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F30CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30CA
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30CA#FFFFFF#000000##FFFFFF
##2F30CA1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f30ca;
/* rgb */ color: rgb(47, 48, 202);
/* oklch */ color: oklch(43.4% 0.227 271.5);
Tailwind
colors: {
  custom: {
    50: '#826bdc',
    500: '#2f30ca',
    950: '#000000',
  },
}
SCSS
$custom: #2f30ca;
$custom-light: #826bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30ca",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 202
  },
  "hsl": {
    "h": 239.613,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43358,
    "c": 0.22705,
    "h": 271.5
  },
  "luminance": 0.06983
}

Semantic roles & 50–950 ramp

primary
#2F30CA
secondary
#CFCF86
accent
#E442E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #2F30CA

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

Preview Lab → · Contrast checker → · Palette generator →

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