#2F3495#2F3495

#2F3495 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.156 H 274.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2F3495
RGBrgb(47, 52, 149)
HSLhsl(237, 52%, 38%)
HSVhsv(237, 68%, 58%)
CMYKcmyk(68.5%, 65.1%, 0%, 41.6%)
CIE-LABlab(27.38, 30.52, -53.93)
CIE-LCHlch(27.38, 61.96, 299.51°)
OKLaboklab(38.64% 0.0113 -0.1556)
OKLCHoklch(38.64% 0.156 274.2)
XYZxyz(7.8233, 5.2295, 29.0251)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3495 #95902F
analogous
#2F6795 #2F3495 #5D2F95
triadic
#2F3495 #952F34 #34952F
tetradic
#2F3495 #952F67 #95902F #2F955D
square
#2F3495 #952F67 #95902F #2F955D
split-complementary
#2F3495 #955D2F #67952F
monochromatic
#121438 #202466 #2F3495 #3F45C2 #6D72D1

Accessibility & contrast

On white

10.26
#2F3495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F3495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3495
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3495#FFFFFF#000000##FFFFFF
##2F34951.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3495;
/* rgb */ color: rgb(47, 52, 149);
/* oklch */ color: oklch(38.6% 0.156 274.2);
Tailwind
colors: {
  custom: {
    50: '#756bb5',
    500: '#2f3495',
    950: '#000000',
  },
}
SCSS
$custom: #2f3495;
$custom-light: #756bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3495",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 237.059,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38636,
    "c": 0.156,
    "h": 274.2
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#2F3495
secondary
#B8B467
accent
#D44CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3495

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

Preview Lab → · Contrast checker → · Palette generator →

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