#2F3F95#2F3F95

#2F3F95 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.142 H 270.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2F3F95
RGBrgb(47, 63, 149)
HSLhsl(231, 52%, 38%)
HSVhsv(231, 68%, 58%)
CMYKcmyk(68.5%, 57.7%, 0%, 41.6%)
CIE-LABlab(30.23, 23.22, -49.29)
CIE-LCHlch(30.23, 54.48, 295.23°)
OKLaboklab(40.74% 0.002 -0.1418)
OKLCHoklch(40.74% 0.142 270.8)
XYZxyz(8.3728, 6.3285, 29.2082)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F95 #95852F
analogous
#2F7295 #2F3F95 #522F95
triadic
#2F3F95 #952F3F #3F952F
tetradic
#2F3F95 #952F72 #95852F #2F9552
square
#2F3F95 #952F72 #95852F #2F9552
split-complementary
#2F3F95 #95522F #72952F
monochromatic
#121838 #202B66 #2F3F95 #3F53C2 #6D7DD1

Accessibility & contrast

On white

9.27
#2F3F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F3F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F95
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F95#FFFFFF#000000##FFFFFF
##2F3F951.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3f95;
/* rgb */ color: rgb(47, 63, 149);
/* oklch */ color: oklch(40.7% 0.142 270.8);
Tailwind
colors: {
  custom: {
    50: '#7473b5',
    500: '#2f3f95',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f95;
$custom-light: #7473b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f95",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 149
  },
  "hsl": {
    "h": 230.588,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40743,
    "c": 0.14186,
    "h": 270.8
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#2F3F95
secondary
#B8AC67
accent
#C54CDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F95

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

Preview Lab → · Contrast checker → · Palette generator →

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