#2F30B7#2F30B7

#2F30B7 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.204 H 272.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2F30B7
RGBrgb(47, 48, 183)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 72%)
CMYKcmyk(74.3%, 73.8%, 0%, 28.2%)
CIE-LABlab(29.75, 44.77, -70.54)
CIE-LCHlch(29.75, 83.55, 302.40°)
OKLaboklab(41.34% 0.0095 -0.2041)
OKLCHoklch(41.34% 0.204 272.7)
XYZxyz(10.7736, 6.1360, 45.4071)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30B7 #B7B62F
analogous
#2F74B7 #2F30B7 #722FB7
triadic
#2F30B7 #B72F30 #30B72F
tetradic
#2F30B7 #B72F74 #B7B62F #2FB772
square
#2F30B7 #B72F74 #B7B62F #2FB772
split-complementary
#2F30B7 #B7722F #74B72F
monochromatic
#161656 #222386 #2F30B7 #5152D2 #8282DF

Accessibility & contrast

On white

9.43
#2F30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30B7
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30B7#FFFFFF#000000##FFFFFF
##2F30B71.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f30b7;
/* rgb */ color: rgb(47, 48, 183);
/* oklch */ color: oklch(41.3% 0.204 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d6ace',
    500: '#2f30b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f30b7;
$custom-light: #7d6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30b7",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 239.559,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41339,
    "c": 0.20434,
    "h": 272.7
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#2F30B7
secondary
#C8C77A
accent
#E145E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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