#2F30C8#2F30C8

#2F30C8 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.1% C 0.225 H 271.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2F30C8
RGBrgb(47, 48, 200)
HSLhsl(240, 62%, 48%)
HSVhsv(240, 77%, 78%)
CMYKcmyk(76.5%, 76%, 0%, 21.6%)
CIE-LABlab(31.55, 50.34, -77.59)
CIE-LCHlch(31.55, 92.49, 302.98°)
OKLaboklab(43.14% 0.0064 -0.2246)
OKLCHoklch(43.14% 0.225 271.6)
XYZxyz(12.6510, 6.8870, 55.2950)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30C8 #C8C72F
analogous
#2F7CC8 #2F30C8 #7A2FC8
triadic
#2F30C8 #C82F30 #30C82F
tetradic
#2F30C8 #C82F7C #C8C72F #2FC87A
square
#2F30C8 #C82F7C #C8C72F #2FC87A
split-complementary
#2F30C8 #C87A2F #7CC82F
monochromatic
#181865 #232496 #2F30C8 #5C5CD9 #8D8EE4

Accessibility & contrast

On white

8.83
#2F30C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2F30C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30C8
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30C8#FFFFFF#000000##FFFFFF
##2F30C81.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CC
Deuteranopia (green-blind)
#0042C5
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f30c8;
/* rgb */ color: rgb(47, 48, 200);
/* oklch */ color: oklch(43.1% 0.225 271.6);
Tailwind
colors: {
  custom: {
    50: '#816bda',
    500: '#2f30c8',
    950: '#000000',
  },
}
SCSS
$custom: #2f30c8;
$custom-light: #816bda;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30c8",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 200
  },
  "hsl": {
    "h": 239.608,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43142,
    "c": 0.2247,
    "h": 271.6
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#2F30C8
secondary
#CFCE84
accent
#E443E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F30C8

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

Preview Lab → · Contrast checker → · Palette generator →

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