#2F339F#2F339F

#2F339F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.171 H 273.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2F339F
RGBrgb(47, 51, 159)
HSLhsl(238, 54%, 40%)
HSVhsv(238, 70%, 62%)
CMYKcmyk(70.4%, 67.9%, 0%, 37.6%)
CIE-LABlab(28.05, 34.72, -58.94)
CIE-LCHlch(28.05, 68.41, 300.50°)
OKLaboklab(39.4% 0.0111 -0.1703)
OKLCHoklch(39.4% 0.171 273.7)
XYZxyz(8.6120, 5.4744, 33.3970)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F339F #9F9B2F
analogous
#2F6B9F #2F339F #632F9F
triadic
#2F339F #9F2F33 #339F2F
tetradic
#2F339F #9F2F6B #9F9B2F #2F9F63
square
#2F339F #9F2F6B #9F9B2F #2F9F63
split-complementary
#2F339F #9F632F #6B9F2F
monochromatic
#131541 #212470 #2F339F #4448C8 #7376D6

Accessibility & contrast

On white

10.02
#2F339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F339F
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F339F#FFFFFF#000000##FFFFFF
##2F339F1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f339f;
/* rgb */ color: rgb(47, 51, 159);
/* oklch */ color: oklch(39.4% 0.171 273.7);
Tailwind
colors: {
  custom: {
    50: '#776bbc',
    500: '#2f339f',
    950: '#000000',
  },
}
SCSS
$custom: #2f339f;
$custom-light: #776bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f339f",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 237.857,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.394,
    "c": 0.17064,
    "h": 273.7
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

primary
#2F339F
secondary
#BDBA6D
accent
#D84ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F339F

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

Preview Lab → · Contrast checker → · Palette generator →

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