#2F3395#2F3395

#2F3395 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.157 H 274.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#2F3395
RGBrgb(47, 51, 149)
HSLhsl(238, 52%, 38%)
HSVhsv(238, 68%, 58%)
CMYKcmyk(68.5%, 65.8%, 0%, 41.6%)
CIE-LABlab(27.13, 31.17, -54.33)
CIE-LCHlch(27.13, 62.63, 299.84°)
OKLaboklab(38.46% 0.0121 -0.1568)
OKLCHoklch(38.46% 0.157 274.4)
XYZxyz(7.7791, 5.1412, 29.0103)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3395 #95912F
analogous
#2F6695 #2F3395 #5E2F95
triadic
#2F3395 #952F33 #33952F
tetradic
#2F3395 #952F66 #95912F #2F955E
square
#2F3395 #952F66 #95912F #2F955E
split-complementary
#2F3395 #955E2F #66952F
monochromatic
#121338 #202366 #2F3395 #3F44C2 #6D71D1

Accessibility & contrast

On white

10.35
#2F3395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F3395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3395
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3395#FFFFFF#000000##FFFFFF
##2F33951.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3395;
/* rgb */ color: rgb(47, 51, 149);
/* oklch */ color: oklch(38.5% 0.157 274.4);
Tailwind
colors: {
  custom: {
    50: '#756bb5',
    500: '#2f3395',
    950: '#000000',
  },
}
SCSS
$custom: #2f3395;
$custom-light: #756bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3395",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 237.647,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.15723,
    "h": 274.4
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#2F3395
secondary
#B8B567
accent
#D64CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3395

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

Preview Lab → · Contrast checker → · Palette generator →

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