#2F318B#2F318B

#2F318B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.146 H 275.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2F318B
RGBrgb(47, 49, 139)
HSLhsl(239, 49%, 36%)
HSVhsv(239, 66%, 55%)
CMYKcmyk(66.2%, 64.7%, 0%, 45.5%)
CIE-LABlab(25.76, 28.89, -50.40)
CIE-LCHlch(25.76, 58.09, 299.82°)
OKLaboklab(37.18% 0.0145 -0.1453)
OKLCHoklch(37.18% 0.146 275.7)
XYZxyz(6.9293, 4.6645, 24.9563)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F318B #8B892F
analogous
#2F5F8B #2F318B #5B2F8B
triadic
#2F318B #8B2F31 #318B2F
tetradic
#2F318B #8B2F5F #8B892F #2F8B5B
square
#2F318B #8B2F5F #8B892F #2F8B5B
split-complementary
#2F318B #8B5B2F #5F8B2F
monochromatic
#101130 #20215D #2F318B #3E41B9 #686BCC

Accessibility & contrast

On white

10.86
#2F318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F318B
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F318B#FFFFFF#000000##FFFFFF
##2F318B1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f318b;
/* rgb */ color: rgb(47, 49, 139);
/* oklch */ color: oklch(37.2% 0.146 275.7);
Tailwind
colors: {
  custom: {
    50: '#7369ae',
    500: '#2f318b',
    950: '#000000',
  },
}
SCSS
$custom: #2f318b;
$custom-light: #7369ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f318b",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 238.696,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37176,
    "c": 0.14599,
    "h": 275.7
  },
  "luminance": 0.04665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F318B

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

Preview Lab → · Contrast checker → · Palette generator →

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