#2F3294#2F3294

#2F3294 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.157 H 274.7°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2F3294
RGBrgb(47, 50, 148)
HSLhsl(238, 52%, 38%)
HSVhsv(238, 68%, 58%)
CMYKcmyk(68.2%, 66.2%, 0%, 42%)
CIE-LABlab(26.80, 31.46, -54.26)
CIE-LCHlch(26.80, 62.72, 300.10°)
OKLaboklab(38.19% 0.013 -0.1566)
OKLCHoklch(38.19% 0.157 274.7)
XYZxyz(7.6564, 5.0230, 28.5773)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3294 #94912F
analogous
#2F6494 #2F3294 #5E2F94
triadic
#2F3294 #942F32 #32942F
tetradic
#2F3294 #942F64 #94912F #2F945E
square
#2F3294 #942F64 #94912F #2F945E
split-complementary
#2F3294 #945E2F #64942F
monochromatic
#111337 #202266 #2F3294 #3E42C2 #6D70D1

Accessibility & contrast

On white

10.47
#2F3294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F3294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3294
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3294#FFFFFF#000000##FFFFFF
##2F32941.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3294;
/* rgb */ color: rgb(47, 50, 148);
/* oklch */ color: oklch(38.2% 0.157 274.7);
Tailwind
colors: {
  custom: {
    50: '#756ab4',
    500: '#2f3294',
    950: '#000000',
  },
}
SCSS
$custom: #2f3294;
$custom-light: #756ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3294",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 148
  },
  "hsl": {
    "h": 238.218,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.1571,
    "h": 274.7
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#2F3294
secondary
#B8B567
accent
#D74DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3294

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

Preview Lab → · Contrast checker → · Palette generator →

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