#2F318D#2F318D

#2F318D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.149 H 275.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2F318D
RGBrgb(47, 49, 141)
HSLhsl(239, 50%, 37%)
HSVhsv(239, 67%, 55%)
CMYKcmyk(66.7%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.93, 29.61, -51.36)
CIE-LCHlch(25.93, 59.28, 299.96°)
OKLaboklab(37.36% 0.0143 -0.1481)
OKLCHoklch(37.36% 0.149 275.5)
XYZxyz(7.0767, 4.7234, 25.7329)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F318D #8D8B2F
analogous
#2F608D #2F318D #5C2F8D
triadic
#2F318D #8D2F31 #318D2F
tetradic
#2F318D #8D2F60 #8D8B2F #2F8D5C
square
#2F318D #8D2F60 #8D8B2F #2F8D5C
split-complementary
#2F318D #8D5C2F #608D2F
monochromatic
#101131 #20215F #2F318D #3E41BB #696BCD

Accessibility & contrast

On white

10.80
#2F318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F318D
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F318D#FFFFFF#000000##FFFFFF
##2F318D1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f318d;
/* rgb */ color: rgb(47, 49, 141);
/* oklch */ color: oklch(37.4% 0.149 275.5);
Tailwind
colors: {
  custom: {
    50: '#7469af',
    500: '#2f318d',
    950: '#000000',
  },
}
SCSS
$custom: #2f318d;
$custom-light: #7469af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f318d",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 238.723,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.14876,
    "h": 275.5
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#2F318D
secondary
#B4B264
accent
#D74EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F318D

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

Preview Lab → · Contrast checker → · Palette generator →

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