#2F318C#2F318C

#2F318C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.147 H 275.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2F318C
RGBrgb(47, 49, 140)
HSLhsl(239, 50%, 37%)
HSVhsv(239, 66%, 55%)
CMYKcmyk(66.4%, 65%, 0%, 45.1%)
CIE-LABlab(25.84, 29.25, -50.88)
CIE-LCHlch(25.84, 58.69, 299.89°)
OKLaboklab(37.27% 0.0144 -0.1467)
OKLCHoklch(37.27% 0.147 275.6)
XYZxyz(7.0027, 4.6938, 25.3428)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F318C #8C8A2F
analogous
#2F608C #2F318C #5C2F8C
triadic
#2F318C #8C2F31 #318C2F
tetradic
#2F318C #8C2F60 #8C8A2F #2F8C5C
square
#2F318C #8C2F60 #8C8A2F #2F8C5C
split-complementary
#2F318C #8C5C2F #608C2F
monochromatic
#101130 #20215E #2F318C #3E41BA #696BCD

Accessibility & contrast

On white

10.83
#2F318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F318C
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F318C#FFFFFF#000000##FFFFFF
##2F318C1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f318c;
/* rgb */ color: rgb(47, 49, 140);
/* oklch */ color: oklch(37.3% 0.147 275.6);
Tailwind
colors: {
  custom: {
    50: '#7369ae',
    500: '#2f318c',
    950: '#000000',
  },
}
SCSS
$custom: #2f318c;
$custom-light: #7369ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f318c",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 238.71,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37267,
    "c": 0.14738,
    "h": 275.6
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#2F318C
secondary
#B4B263
accent
#D64FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F318C

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

Preview Lab → · Contrast checker → · Palette generator →

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