#2F3985#2F3985

#2F3985 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.127 H 273.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2F3985
RGBrgb(47, 57, 133)
HSLhsl(233, 48%, 35%)
HSVhsv(233, 65%, 52%)
CMYKcmyk(64.7%, 57.1%, 0%, 47.8%)
CIE-LABlab(27.36, 21.35, -44.06)
CIE-LCHlch(27.36, 48.96, 295.85°)
OKLaboklab(38.21% 0.0071 -0.1265)
OKLCHoklch(38.21% 0.127 273.2)
XYZxyz(6.8677, 5.2235, 22.8321)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3985 #857B2F
analogous
#2F6485 #2F3985 #502F85
triadic
#2F3985 #852F39 #39852F
tetradic
#2F3985 #852F64 #857B2F #2F8550
square
#2F3985 #852F64 #857B2F #2F8550
split-complementary
#2F3985 #85502F #64852F
monochromatic
#0F122B #1F2658 #2F3985 #3F4CB2 #6671C9

Accessibility & contrast

On white

10.27
#2F3985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F3985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3985
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3985#FFFFFF#000000##FFFFFF
##2F39851.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004588
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3985;
/* rgb */ color: rgb(47, 57, 133);
/* oklch */ color: oklch(38.2% 0.127 273.2);
Tailwind
colors: {
  custom: {
    50: '#716fa9',
    500: '#2f3985',
    950: '#000000',
  },
}
SCSS
$custom: #2f3985;
$custom-light: #716fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3985",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 233.023,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38211,
    "c": 0.12675,
    "h": 273.2
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#2F3985
secondary
#B0A660
accent
#C850D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3985

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

Preview Lab → · Contrast checker → · Palette generator →

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