#2F309A#2F309A

#2F309A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.168 H 274.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2F309A
RGBrgb(47, 48, 154)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(69.5%, 68.8%, 0%, 39.6%)
CIE-LABlab(26.88, 34.85, -57.81)
CIE-LCHlch(26.88, 67.50, 301.08°)
OKLaboklab(38.41% 0.0138 -0.167)
OKLCHoklch(38.41% 0.168 274.7)
XYZxyz(8.0600, 5.0506, 31.1157)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F309A #9A992F
analogous
#2F669A #2F309A #642F9A
triadic
#2F309A #9A2F30 #309A2F
tetradic
#2F309A #9A2F66 #9A992F #2F9A64
square
#2F309A #9A2F66 #9A992F #2F9A64
split-complementary
#2F309A #9A642F #669A2F
monochromatic
#12133C #21216B #2F309A #4142C5 #7071D3

Accessibility & contrast

On white

10.45
#2F309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F309A
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F309A#FFFFFF#000000##FFFFFF
##2F309A1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f309a;
/* rgb */ color: rgb(47, 48, 154);
/* oklch */ color: oklch(38.4% 0.168 274.7);
Tailwind
colors: {
  custom: {
    50: '#7769b9',
    500: '#2f309a',
    950: '#000000',
  },
}
SCSS
$custom: #2f309a;
$custom-light: #7769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f309a",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 239.439,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38412,
    "c": 0.16754,
    "h": 274.7
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#2F309A
secondary
#BBBA6A
accent
#DB4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F309A

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

Preview Lab → · Contrast checker → · Palette generator →

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