#2F309D#2F309D

#2F309D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.171 H 274.5°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2F309D
RGBrgb(47, 48, 157)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(70.1%, 69.4%, 0%, 38.4%)
CIE-LABlab(27.16, 35.90, -59.17)
CIE-LCHlch(27.16, 69.21, 301.24°)
OKLaboklab(38.7% 0.0134 -0.171)
OKLCHoklch(38.7% 0.171 274.5)
XYZxyz(8.3130, 5.1518, 32.4480)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F309D #9D9C2F
analogous
#2F679D #2F309D #652F9D
triadic
#2F309D #9D2F30 #309D2F
tetradic
#2F309D #9D2F67 #9D9C2F #2F9D65
square
#2F309D #9D2F67 #9D9C2F #2F9D65
split-complementary
#2F309D #9D652F #679D2F
monochromatic
#13133F #21226E #2F309D #4344C7 #7273D5

Accessibility & contrast

On white

10.34
#2F309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F309D
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F309D#FFFFFF#000000##FFFFFF
##2F309D1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f309d;
/* rgb */ color: rgb(47, 48, 157);
/* oklch */ color: oklch(38.7% 0.171 274.5);
Tailwind
colors: {
  custom: {
    50: '#7769bb',
    500: '#2f309d',
    950: '#000000',
  },
}
SCSS
$custom: #2f309d;
$custom-light: #7769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f309d",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 239.455,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.17149,
    "h": 274.5
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#2F309D
secondary
#BCBC6B
accent
#DC4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F309D

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

Preview Lab → · Contrast checker → · Palette generator →

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