#2F339A#2F339A

#2F339A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.164 H 274.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2F339A
RGBrgb(47, 51, 154)
HSLhsl(238, 53%, 39%)
HSVhsv(238, 69%, 60%)
CMYKcmyk(69.5%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.58, 32.95, -56.65)
CIE-LCHlch(27.58, 65.54, 300.19°)
OKLaboklab(38.92% 0.0116 -0.1636)
OKLCHoklch(38.92% 0.164 274.1)
XYZxyz(8.1869, 5.3043, 31.1580)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F339A #9A962F
analogous
#2F699A #2F339A #612F9A
triadic
#2F339A #9A2F33 #339A2F
tetradic
#2F339A #9A2F69 #9A962F #2F9A61
square
#2F339A #9A2F69 #9A962F #2F9A61
split-complementary
#2F339A #9A612F #699A2F
monochromatic
#12143C #21236B #2F339A #4146C5 #7074D3

Accessibility & contrast

On white

10.19
#2F339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F339A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F339A#FFFFFF#000000##FFFFFF
##2F339A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f339a;
/* rgb */ color: rgb(47, 51, 154);
/* oklch */ color: oklch(38.9% 0.164 274.1);
Tailwind
colors: {
  custom: {
    50: '#766bb9',
    500: '#2f339a',
    950: '#000000',
  },
}
SCSS
$custom: #2f339a;
$custom-light: #766bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f339a",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 237.757,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38924,
    "c": 0.16398,
    "h": 274.1
  },
  "luminance": 0.05305
}

Semantic roles & 50–950 ramp

primary
#2F339A
secondary
#BBB86A
accent
#D74BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F339A

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

Preview Lab → · Contrast checker → · Palette generator →

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