#2F3279#2F3279

#2F3279 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.119 H 276.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2F3279
RGBrgb(47, 50, 121)
HSLhsl(238, 44%, 33%)
HSVhsv(238, 61%, 47%)
CMYKcmyk(61.2%, 58.7%, 0%, 52.5%)
CIE-LABlab(24.53, 21.73, -41.10)
CIE-LCHlch(24.53, 46.49, 297.86°)
OKLaboklab(35.81% 0.014 -0.1179)
OKLCHoklch(35.81% 0.119 276.8)
XYZxyz(5.7630, 4.2656, 18.6051)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3279 #79762F
analogous
#2F5779 #2F3279 #512F79
triadic
#2F3279 #792F32 #32792F
tetradic
#2F3279 #792F57 #79762F #2F7951
square
#2F3279 #792F57 #79762F #2F7951
split-complementary
#2F3279 #79512F #57792F
monochromatic
#0D0E21 #1E204D #2F3279 #4044A5 #6165C2

Accessibility & contrast

On white

11.33
#2F3279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F3279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3279
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3279#FFFFFF#000000##FFFFFF
##2F32791.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f3279;
/* rgb */ color: rgb(47, 50, 121);
/* oklch */ color: oklch(35.8% 0.119 276.8);
Tailwind
colors: {
  custom: {
    50: '#6f69a0',
    500: '#2f3279',
    950: '#000000',
  },
}
SCSS
$custom: #2f3279;
$custom-light: #6f69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3279",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 121
  },
  "hsl": {
    "h": 237.568,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35805,
    "c": 0.11875,
    "h": 276.8
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#2F3279
secondary
#A8A55B
accent
#CF54D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2F3279

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

Preview Lab → · Contrast checker → · Palette generator →

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