#2F339D#2F339D

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

Color values

HEX#2F339D
RGBrgb(47, 51, 157)
HSLhsl(238, 54%, 40%)
HSVhsv(238, 70%, 62%)
CMYKcmyk(70.1%, 67.5%, 0%, 38.4%)
CIE-LABlab(27.86, 34.02, -58.03)
CIE-LCHlch(27.86, 67.26, 300.38°)
OKLaboklab(39.21% 0.0114 -0.1676)
OKLCHoklch(39.21% 0.168 273.9)
XYZxyz(8.4399, 5.4055, 32.4903)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F339D #9D992F
analogous
#2F6A9D #2F339D #622F9D
triadic
#2F339D #9D2F33 #339D2F
tetradic
#2F339D #9D2F6A #9D992F #2F9D62
square
#2F339D #9D2F6A #9D992F #2F9D62
split-complementary
#2F339D #9D622F #6A9D2F
monochromatic
#13143F #21246E #2F339D #4347C7 #7275D5

Accessibility & contrast

On white

10.09
#2F339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F339D
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F339D#FFFFFF#000000##FFFFFF
##2F339D1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f339d;
/* rgb */ color: rgb(47, 51, 157);
/* oklch */ color: oklch(39.2% 0.168 273.9);
Tailwind
colors: {
  custom: {
    50: '#776bbb',
    500: '#2f339d',
    950: '#000000',
  },
}
SCSS
$custom: #2f339d;
$custom-light: #776bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f339d",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 237.818,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.16799,
    "h": 273.9
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F339D

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

Preview Lab → · Contrast checker → · Palette generator →

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