#2F3291#2F3291

#2F3291 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.153 H 274.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2F3291
RGBrgb(47, 50, 145)
HSLhsl(238, 51%, 38%)
HSVhsv(238, 68%, 57%)
CMYKcmyk(67.6%, 65.5%, 0%, 43.1%)
CIE-LABlab(26.53, 30.38, -52.85)
CIE-LCHlch(26.53, 60.96, 299.90°)
OKLaboklab(37.91% 0.0132 -0.1524)
OKLCHoklch(37.91% 0.153 274.9)
XYZxyz(7.4220, 4.9292, 27.3429)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3291 #918E2F
analogous
#2F6391 #2F3291 #5D2F91
triadic
#2F3291 #912F32 #32912F
tetradic
#2F3291 #912F63 #918E2F #2F915D
square
#2F3291 #912F63 #918E2F #2F915D
split-complementary
#2F3291 #915D2F #63912F
monochromatic
#111235 #202263 #2F3291 #3E42BF #6B6ECF

Accessibility & contrast

On white

10.57
#2F3291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F3291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3291
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3291#FFFFFF#000000##FFFFFF
##2F32911.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3291;
/* rgb */ color: rgb(47, 50, 145);
/* oklch */ color: oklch(37.9% 0.153 274.9);
Tailwind
colors: {
  custom: {
    50: '#746ab2',
    500: '#2f3291',
    950: '#000000',
  },
}
SCSS
$custom: #2f3291;
$custom-light: #746ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3291",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 238.163,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37907,
    "c": 0.15301,
    "h": 274.9
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#2F3291
secondary
#B6B465
accent
#D64DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3291

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

Preview Lab → · Contrast checker → · Palette generator →

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