#2F3A95#2F3A95

#2F3A95 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.148 H 272.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2F3A95
RGBrgb(47, 58, 149)
HSLhsl(234, 52%, 38%)
HSVhsv(234, 68%, 58%)
CMYKcmyk(68.5%, 61.1%, 0%, 41.6%)
CIE-LABlab(28.90, 26.57, -51.44)
CIE-LCHlch(28.90, 57.90, 297.31°)
OKLaboklab(39.76% 0.0064 -0.1482)
OKLCHoklch(39.76% 0.148 272.5)
XYZxyz(8.1083, 5.7996, 29.1201)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A95 #958A2F
analogous
#2F6D95 #2F3A95 #572F95
triadic
#2F3A95 #952F3A #3A952F
tetradic
#2F3A95 #952F6D #958A2F #2F9557
square
#2F3A95 #952F6D #958A2F #2F9557
split-complementary
#2F3A95 #95572F #6D952F
monochromatic
#121638 #202866 #2F3A95 #3F4DC2 #6D78D1

Accessibility & contrast

On white

9.72
#2F3A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F3A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A95
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A95#FFFFFF#000000##FFFFFF
##2F3A951.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3a95;
/* rgb */ color: rgb(47, 58, 149);
/* oklch */ color: oklch(39.8% 0.148 272.5);
Tailwind
colors: {
  custom: {
    50: '#7570b5',
    500: '#2f3a95',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a95;
$custom-light: #7570b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a95",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 149
  },
  "hsl": {
    "h": 233.529,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39757,
    "c": 0.14838,
    "h": 272.5
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#2F3A95
secondary
#B8B067
accent
#CC4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A95

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

Preview Lab → · Contrast checker → · Palette generator →

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