#2F309E#2F309E

#2F309E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.173 H 274.4°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2F309E
RGBrgb(47, 48, 158)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(70.3%, 69.6%, 0%, 38%)
CIE-LABlab(27.26, 36.25, -59.62)
CIE-LCHlch(27.26, 69.78, 301.30°)
OKLaboklab(38.8% 0.0133 -0.1723)
OKLCHoklch(38.8% 0.173 274.4)
XYZxyz(8.3988, 5.1861, 32.8995)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F309E #9E9D2F
analogous
#2F689E #2F309E #652F9E
triadic
#2F309E #9E2F30 #309E2F
tetradic
#2F309E #9E2F68 #9E9D2F #2F9E65
square
#2F309E #9E2F68 #9E9D2F #2F9E65
split-complementary
#2F309E #9E652F #689E2F
monochromatic
#131340 #21226F #2F309E #4344C7 #7273D5

Accessibility & contrast

On white

10.31
#2F309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F309E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F309E#FFFFFF#000000##FFFFFF
##2F309E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f309e;
/* rgb */ color: rgb(47, 48, 158);
/* oklch */ color: oklch(38.8% 0.173 274.4);
Tailwind
colors: {
  custom: {
    50: '#7869bc',
    500: '#2f309e',
    950: '#000000',
  },
}
SCSS
$custom: #2f309e;
$custom-light: #7869bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f309e",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 239.459,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38802,
    "c": 0.17279,
    "h": 274.4
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#2F309E
secondary
#BDBC6C
accent
#DC4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F309E

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

Preview Lab → · Contrast checker → · Palette generator →

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