#2F3EA5#2F3EA5

#2F3EA5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.165 H 271.0°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F3EA5
RGBrgb(47, 62, 165)
HSLhsl(232, 56%, 42%)
HSVhsv(232, 72%, 65%)
CMYKcmyk(71.5%, 62.4%, 0%, 35.3%)
CIE-LABlab(31.27, 29.80, -57.29)
CIE-LCHlch(31.27, 64.58, 297.48°)
OKLaboklab(41.92% 0.0028 -0.1654)
OKLCHoklch(41.92% 0.165 271)
XYZxyz(9.6841, 6.7652, 36.3855)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EA5 #A5962F
analogous
#2F79A5 #2F3EA5 #5B2FA5
triadic
#2F3EA5 #A52F3E #3EA52F
tetradic
#2F3EA5 #A52F79 #A5962F #2FA55B
square
#2F3EA5 #A52F79 #A5962F #2FA55B
split-complementary
#2F3EA5 #A55B2F #79A52F
monochromatic
#141A46 #212C75 #2F3EA5 #4757CB #7683D8

Accessibility & contrast

On white

8.92
#2F3EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F3EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EA5
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EA5#FFFFFF#000000##FFFFFF
##2F3EA51.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3ea5;
/* rgb */ color: rgb(47, 62, 165);
/* oklch */ color: oklch(41.9% 0.165 271.0);
Tailwind
colors: {
  custom: {
    50: '#7873c1',
    500: '#2f3ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ea5;
$custom-light: #7873c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ea5",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 232.373,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41922,
    "c": 0.16541,
    "h": 271
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#2F3EA5
secondary
#C0B670
accent
#CC49DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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