#2F339B#2F339B

#2F339B is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.165 H 274.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2F339B
RGBrgb(47, 51, 155)
HSLhsl(238, 53%, 40%)
HSVhsv(238, 70%, 61%)
CMYKcmyk(69.7%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.68, 33.31, -57.11)
CIE-LCHlch(27.68, 66.11, 300.25°)
OKLaboklab(39.02% 0.0116 -0.1649)
OKLCHoklch(39.02% 0.165 274)
XYZxyz(8.2705, 5.3378, 31.5984)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F339B #9B972F
analogous
#2F699B #2F339B #612F9B
triadic
#2F339B #9B2F33 #339B2F
tetradic
#2F339B #9B2F69 #9B972F #2F9B61
square
#2F339B #9B2F69 #9B972F #2F9B61
split-complementary
#2F339B #9B612F #699B2F
monochromatic
#13143D #21246C #2F339B #4247C6 #7174D4

Accessibility & contrast

On white

10.16
#2F339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F339B
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F339B#FFFFFF#000000##FFFFFF
##2F339B1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f339b;
/* rgb */ color: rgb(47, 51, 155);
/* oklch */ color: oklch(39.0% 0.165 274.0);
Tailwind
colors: {
  custom: {
    50: '#776bb9',
    500: '#2f339b',
    950: '#000000',
  },
}
SCSS
$custom: #2f339b;
$custom-light: #776bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f339b",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 237.778,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39019,
    "c": 0.16532,
    "h": 274
  },
  "luminance": 0.05339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F339B

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

Preview Lab → · Contrast checker → · Palette generator →

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