#2F309F#2F309F

#2F309F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.174 H 274.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2F309F
RGBrgb(47, 48, 159)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(70.4%, 69.8%, 0%, 37.6%)
CIE-LABlab(27.35, 36.59, -60.07)
CIE-LCHlch(27.35, 70.34, 301.35°)
OKLaboklab(38.9% 0.0132 -0.1736)
OKLCHoklch(38.9% 0.174 274.3)
XYZxyz(8.4852, 5.2206, 33.3547)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F309F #9F9E2F
analogous
#2F689F #2F309F #662F9F
triadic
#2F309F #9F2F30 #309F2F
tetradic
#2F309F #9F2F68 #9F9E2F #2F9F66
square
#2F309F #9F2F68 #9F9E2F #2F9F66
split-complementary
#2F309F #9F662F #689F2F
monochromatic
#131341 #212270 #2F309F #4445C8 #7374D6

Accessibility & contrast

On white

10.27
#2F309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F309F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F309F#FFFFFF#000000##FFFFFF
##2F309F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f309f;
/* rgb */ color: rgb(47, 48, 159);
/* oklch */ color: oklch(38.9% 0.174 274.3);
Tailwind
colors: {
  custom: {
    50: '#7869bc',
    500: '#2f309f',
    950: '#000000',
  },
}
SCSS
$custom: #2f309f;
$custom-light: #7869bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f309f",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 239.464,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.389,
    "c": 0.1741,
    "h": 274.3
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#2F309F
secondary
#BDBD6D
accent
#DC4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F309F

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

Preview Lab → · Contrast checker → · Palette generator →

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