#2F3D9E#2F3D9E

#2F3D9E is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.157 H 271.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2F3D9E
RGBrgb(47, 61, 158)
HSLhsl(232, 54%, 40%)
HSVhsv(232, 70%, 62%)
CMYKcmyk(70.3%, 61.4%, 0%, 38%)
CIE-LABlab(30.42, 27.89, -54.44)
CIE-LCHlch(30.42, 61.17, 297.12°)
OKLaboklab(41.12% 0.0037 -0.157)
OKLCHoklch(41.12% 0.157 271.4)
XYZxyz(9.0105, 6.4096, 33.1034)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D9E #9E902F
analogous
#2F759E #2F3D9E #582F9E
triadic
#2F3D9E #9E2F3D #3D9E2F
tetradic
#2F3D9E #9E2F75 #9E902F #2F9E58
square
#2F3D9E #9E2F75 #9E902F #2F9E58
split-complementary
#2F3D9E #9E582F #759E2F
monochromatic
#131940 #212B6F #2F3D9E #4354C7 #727FD5

Accessibility & contrast

On white

9.20
#2F3D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F3D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D9E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D9E#FFFFFF#000000##FFFFFF
##2F3D9E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3d9e;
/* rgb */ color: rgb(47, 61, 158);
/* oklch */ color: oklch(41.1% 0.157 271.4);
Tailwind
colors: {
  custom: {
    50: '#7672bb',
    500: '#2f3d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d9e;
$custom-light: #7672bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d9e",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 158
  },
  "hsl": {
    "h": 232.432,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41116,
    "c": 0.15707,
    "h": 271.4
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#2F3D9E
secondary
#BDB36C
accent
#CB4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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