#2F318E#2F318E

#2F318E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.150 H 275.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2F318E
RGBrgb(47, 49, 142)
HSLhsl(239, 50%, 37%)
HSVhsv(239, 67%, 56%)
CMYKcmyk(66.9%, 65.5%, 0%, 44.3%)
CIE-LABlab(26.02, 29.96, -51.83)
CIE-LCHlch(26.02, 59.87, 300.03°)
OKLaboklab(37.45% 0.0143 -0.1495)
OKLCHoklch(37.45% 0.15 275.4)
XYZxyz(7.1515, 4.7533, 26.1266)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F318E #8E8C2F
analogous
#2F618E #2F318E #5D2F8E
triadic
#2F318E #8E2F31 #318E2F
tetradic
#2F318E #8E2F61 #8E8C2F #2F8E5D
square
#2F318E #8E2F61 #8E8C2F #2F8E5D
split-complementary
#2F318E #8E5D2F #618E2F
monochromatic
#111132 #202160 #2F318E #3E41BC #6A6CCE

Accessibility & contrast

On white

10.76
#2F318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F318E
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F318E#FFFFFF#000000##FFFFFF
##2F318E1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f318e;
/* rgb */ color: rgb(47, 49, 142);
/* oklch */ color: oklch(37.5% 0.150 275.4);
Tailwind
colors: {
  custom: {
    50: '#7469b0',
    500: '#2f318e',
    950: '#000000',
  },
}
SCSS
$custom: #2f318e;
$custom-light: #7469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f318e",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 238.737,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3745,
    "c": 0.15014,
    "h": 275.4
  },
  "luminance": 0.04754
}

Semantic roles & 50–950 ramp

primary
#2F318E
secondary
#B5B364
accent
#D74EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F318E

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

Preview Lab → · Contrast checker → · Palette generator →

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