#2F3295#2F3295

#2F3295 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.158 H 274.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2F3295
RGBrgb(47, 50, 149)
HSLhsl(238, 52%, 38%)
HSVhsv(238, 68%, 58%)
CMYKcmyk(68.5%, 66.4%, 0%, 41.6%)
CIE-LABlab(26.89, 31.81, -54.72)
CIE-LCHlch(26.89, 63.30, 300.17°)
OKLaboklab(38.28% 0.0129 -0.1579)
OKLCHoklch(38.28% 0.158 274.7)
XYZxyz(7.7359, 5.0548, 28.9959)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3295 #95922F
analogous
#2F6595 #2F3295 #5F2F95
triadic
#2F3295 #952F32 #32952F
tetradic
#2F3295 #952F65 #95922F #2F955F
square
#2F3295 #952F65 #95922F #2F955F
split-complementary
#2F3295 #955F2F #65952F
monochromatic
#121338 #202266 #2F3295 #3F43C2 #6D70D1

Accessibility & contrast

On white

10.44
#2F3295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F3295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3295
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3295#FFFFFF#000000##FFFFFF
##2F32951.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3295;
/* rgb */ color: rgb(47, 50, 149);
/* oklch */ color: oklch(38.3% 0.158 274.7);
Tailwind
colors: {
  custom: {
    50: '#756ab5',
    500: '#2f3295',
    950: '#000000',
  },
}
SCSS
$custom: #2f3295;
$custom-light: #756ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3295",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 149
  },
  "hsl": {
    "h": 238.235,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38279,
    "c": 0.15846,
    "h": 274.7
  },
  "luminance": 0.05055
}

Semantic roles & 50–950 ramp

primary
#2F3295
secondary
#B8B667
accent
#D74CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3295

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

Preview Lab → · Contrast checker → · Palette generator →

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