#2F3071#2F3071

#2F3071 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.7% C 0.110 H 278.4°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2F3071
RGBrgb(47, 48, 113)
HSLhsl(239, 41%, 31%)
HSVhsv(239, 58%, 44%)
CMYKcmyk(58.4%, 57.5%, 0%, 55.7%)
CIE-LABlab(23.37, 20.21, -37.88)
CIE-LCHlch(23.37, 42.93, 298.09°)
OKLaboklab(34.75% 0.016 -0.1084)
OKLCHoklch(34.75% 0.11 278.4)
XYZxyz(5.2089, 3.9101, 16.0998)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3071 #71702F
analogous
#2F5171 #2F3071 #4F2F71
triadic
#2F3071 #712F30 #30712F
tetradic
#2F3071 #712F51 #71702F #2F714F
square
#2F3071 #712F51 #71702F #2F714F
split-complementary
#2F3071 #714F2F #51712F
monochromatic
#0B0B1B #1D1E46 #2F3071 #41429C #5E60BC

Accessibility & contrast

On white

11.78
#2F3071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F3071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3071
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3071#FFFFFF#000000##FFFFFF
##2F30711.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053A73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#0D3F4B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f3071;
/* rgb */ color: rgb(47, 48, 113);
/* oklch */ color: oklch(34.7% 0.110 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e689a',
    500: '#2f3071',
    950: '#000000',
  },
}
SCSS
$custom: #2f3071;
$custom-light: #6e689a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3071",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 113
  },
  "hsl": {
    "h": 239.091,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.10962,
    "h": 278.4
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#2F3071
secondary
#A2A15A
accent
#CF57D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3071

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

Preview Lab → · Contrast checker → · Palette generator →

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