#2F339E#2F339E

#2F339E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.169 H 273.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2F339E
RGBrgb(47, 51, 158)
HSLhsl(238, 54%, 40%)
HSVhsv(238, 70%, 62%)
CMYKcmyk(70.3%, 67.7%, 0%, 38%)
CIE-LABlab(27.95, 34.37, -58.48)
CIE-LCHlch(27.95, 67.83, 300.44°)
OKLaboklab(39.31% 0.0113 -0.1689)
OKLCHoklch(39.31% 0.169 273.8)
XYZxyz(8.5256, 5.4398, 32.9418)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F339E #9E9A2F
analogous
#2F6A9E #2F339E #632F9E
triadic
#2F339E #9E2F33 #339E2F
tetradic
#2F339E #9E2F6A #9E9A2F #2F9E63
square
#2F339E #9E2F6A #9E9A2F #2F9E63
split-complementary
#2F339E #9E632F #6A9E2F
monochromatic
#131540 #21246F #2F339E #4348C7 #7276D5

Accessibility & contrast

On white

10.06
#2F339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F339E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F339E#FFFFFF#000000##FFFFFF
##2F339E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f339e;
/* rgb */ color: rgb(47, 51, 158);
/* oklch */ color: oklch(39.3% 0.169 273.8);
Tailwind
colors: {
  custom: {
    50: '#776bbc',
    500: '#2f339e',
    950: '#000000',
  },
}
SCSS
$custom: #2f339e;
$custom-light: #776bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f339e",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 237.838,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39305,
    "c": 0.16931,
    "h": 273.8
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#2F339E
secondary
#BDBA6C
accent
#D84ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F339E

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

Preview Lab → · Contrast checker → · Palette generator →

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