#2F3185#2F3185

#2F3185 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.138 H 276.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2F3185
RGBrgb(47, 49, 133)
HSLhsl(239, 48%, 35%)
HSVhsv(239, 65%, 52%)
CMYKcmyk(64.7%, 63.2%, 0%, 47.8%)
CIE-LABlab(25.24, 26.74, -47.50)
CIE-LCHlch(25.24, 54.51, 299.37°)
OKLaboklab(36.64% 0.0148 -0.1368)
OKLCHoklch(36.64% 0.138 276.2)
XYZxyz(6.5029, 4.4939, 22.7105)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3185 #85832F
analogous
#2F5C85 #2F3185 #582F85
triadic
#2F3185 #852F31 #31852F
tetradic
#2F3185 #852F5C #85832F #2F8558
square
#2F3185 #852F5C #85832F #2F8558
split-complementary
#2F3185 #85582F #5C852F
monochromatic
#0F102B #1F2058 #2F3185 #3F42B2 #6668C9

Accessibility & contrast

On white

11.06
#2F3185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F3185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3185
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3185#FFFFFF#000000##FFFFFF
##2F31851.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f3185;
/* rgb */ color: rgb(47, 49, 133);
/* oklch */ color: oklch(36.6% 0.138 276.2);
Tailwind
colors: {
  custom: {
    50: '#7269a9',
    500: '#2f3185',
    950: '#000000',
  },
}
SCSS
$custom: #2f3185;
$custom-light: #7269a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3185",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 133
  },
  "hsl": {
    "h": 238.605,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36637,
    "c": 0.13756,
    "h": 276.2
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#2F3185
secondary
#B0AE60
accent
#D450D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F3185

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

Preview Lab → · Contrast checker → · Palette generator →

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