#2F3F91#2F3F91

#2F3F91 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.136 H 270.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2F3F91
RGBrgb(47, 63, 145)
HSLhsl(230, 51%, 38%)
HSVhsv(230, 68%, 57%)
CMYKcmyk(67.6%, 56.6%, 0%, 43.1%)
CIE-LABlab(29.92, 21.73, -47.34)
CIE-LCHlch(29.92, 52.09, 294.66°)
OKLaboklab(40.42% 0.0018 -0.1361)
OKLCHoklch(40.42% 0.136 270.8)
XYZxyz(8.0589, 6.2029, 27.5552)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F91 #91812F
analogous
#2F7091 #2F3F91 #502F91
triadic
#2F3F91 #912F3F #3F912F
tetradic
#2F3F91 #912F70 #91812F #2F9150
square
#2F3F91 #912F70 #91812F #2F9150
split-complementary
#2F3F91 #91502F #70912F
monochromatic
#111735 #202B63 #2F3F91 #3E53BF #6B7CCF

Accessibility & contrast

On white

9.37
#2F3F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F3F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F91
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F91#FFFFFF#000000##FFFFFF
##2F3F911.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3f91;
/* rgb */ color: rgb(47, 63, 145);
/* oklch */ color: oklch(40.4% 0.136 270.8);
Tailwind
colors: {
  custom: {
    50: '#7373b2',
    500: '#2f3f91',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f91;
$custom-light: #7373b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f91",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 145
  },
  "hsl": {
    "h": 230.204,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40415,
    "c": 0.13612,
    "h": 270.8
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#2F3F91
secondary
#B6A965
accent
#C34DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F91

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

Preview Lab → · Contrast checker → · Palette generator →

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