#2F309B#2F309B

#2F309B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.169 H 274.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2F309B
RGBrgb(47, 48, 155)
HSLhsl(239, 53%, 40%)
HSVhsv(239, 70%, 61%)
CMYKcmyk(69.7%, 69%, 0%, 39.2%)
CIE-LABlab(26.97, 35.20, -58.26)
CIE-LCHlch(26.97, 68.07, 301.14°)
OKLaboklab(38.51% 0.0137 -0.1683)
OKLCHoklch(38.51% 0.169 274.6)
XYZxyz(8.1437, 5.0840, 31.5561)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F309B #9B9A2F
analogous
#2F669B #2F309B #642F9B
triadic
#2F309B #9B2F30 #309B2F
tetradic
#2F309B #9B2F66 #9B9A2F #2F9B64
square
#2F309B #9B2F66 #9B9A2F #2F9B64
split-complementary
#2F309B #9B642F #669B2F
monochromatic
#13133D #21216C #2F309B #4243C6 #7172D4

Accessibility & contrast

On white

10.41
#2F309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F309B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F309B#FFFFFF#000000##FFFFFF
##2F309B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f309b;
/* rgb */ color: rgb(47, 48, 155);
/* oklch */ color: oklch(38.5% 0.169 274.6);
Tailwind
colors: {
  custom: {
    50: '#7769b9',
    500: '#2f309b',
    950: '#000000',
  },
}
SCSS
$custom: #2f309b;
$custom-light: #7769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f309b",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 239.444,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.16887,
    "h": 274.6
  },
  "luminance": 0.05085
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F309B

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

Preview Lab → · Contrast checker → · Palette generator →

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