#2F339C#2F339C

#2F339C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.167 H 273.9°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2F339C
RGBrgb(47, 51, 156)
HSLhsl(238, 54%, 40%)
HSVhsv(238, 70%, 61%)
CMYKcmyk(69.9%, 67.3%, 0%, 38.8%)
CIE-LABlab(27.77, 33.66, -57.57)
CIE-LCHlch(27.77, 66.69, 300.32°)
OKLaboklab(39.11% 0.0115 -0.1663)
OKLCHoklch(39.11% 0.167 273.9)
XYZxyz(8.3549, 5.3715, 32.0425)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F339C #9C982F
analogous
#2F6A9C #2F339C #612F9C
triadic
#2F339C #9C2F33 #339C2F
tetradic
#2F339C #9C2F6A #9C982F #2F9C61
square
#2F339C #9C2F6A #9C982F #2F9C61
split-complementary
#2F339C #9C612F #6A9C2F
monochromatic
#13143E #21246D #2F339C #4247C6 #7175D4

Accessibility & contrast

On white

10.12
#2F339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F339C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F339C#FFFFFF#000000##FFFFFF
##2F339C1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f339c;
/* rgb */ color: rgb(47, 51, 156);
/* oklch */ color: oklch(39.1% 0.167 273.9);
Tailwind
colors: {
  custom: {
    50: '#776bba',
    500: '#2f339c',
    950: '#000000',
  },
}
SCSS
$custom: #2f339c;
$custom-light: #776bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f339c",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 237.798,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39114,
    "c": 0.16666,
    "h": 273.9
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#2F339C
secondary
#BCB96B
accent
#D84BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F339C

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

Preview Lab → · Contrast checker → · Palette generator →

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