#2F3595#2F3595

#2F3595 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.155 H 273.9°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2F3595
RGBrgb(47, 53, 149)
HSLhsl(236, 52%, 38%)
HSVhsv(236, 68%, 58%)
CMYKcmyk(68.5%, 64.4%, 0%, 41.6%)
CIE-LABlab(27.63, 29.87, -53.52)
CIE-LCHlch(27.63, 61.29, 299.16°)
OKLaboklab(38.82% 0.0105 -0.1544)
OKLCHoklch(38.82% 0.155 273.9)
XYZxyz(7.8684, 5.3198, 29.0401)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3595 #958F2F
analogous
#2F6895 #2F3595 #5C2F95
triadic
#2F3595 #952F35 #35952F
tetradic
#2F3595 #952F68 #958F2F #2F955C
square
#2F3595 #952F68 #958F2F #2F955C
split-complementary
#2F3595 #955C2F #68952F
monochromatic
#121438 #202466 #2F3595 #3F47C2 #6D73D1

Accessibility & contrast

On white

10.17
#2F3595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F3595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3595
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3595#FFFFFF#000000##FFFFFF
##2F35951.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3595;
/* rgb */ color: rgb(47, 53, 149);
/* oklch */ color: oklch(38.8% 0.155 273.9);
Tailwind
colors: {
  custom: {
    50: '#756cb5',
    500: '#2f3595',
    950: '#000000',
  },
}
SCSS
$custom: #2f3595;
$custom-light: #756cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3595",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 149
  },
  "hsl": {
    "h": 236.471,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38817,
    "c": 0.15475,
    "h": 273.9
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#2F3595
secondary
#B8B467
accent
#D34CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3595

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

Preview Lab → · Contrast checker → · Palette generator →

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