#2F338E#2F338E

#2F338E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.148 H 274.9°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F338E
RGBrgb(47, 51, 142)
HSLhsl(237, 50%, 37%)
HSVhsv(237, 67%, 56%)
CMYKcmyk(66.9%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.52, 28.65, -51.02)
CIE-LCHlch(26.52, 58.51, 299.32°)
OKLaboklab(37.82% 0.0126 -0.1471)
OKLCHoklch(37.82% 0.148 274.9)
XYZxyz(7.2370, 4.9244, 26.1551)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F338E #8E8A2F
analogous
#2F638E #2F338E #5B2F8E
triadic
#2F338E #8E2F33 #338E2F
tetradic
#2F338E #8E2F63 #8E8A2F #2F8E5B
square
#2F338E #8E2F63 #8E8A2F #2F8E5B
split-complementary
#2F338E #8E5B2F #638E2F
monochromatic
#111232 #202260 #2F338E #3E44BC #6A6ECE

Accessibility & contrast

On white

10.58
#2F338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F338E
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F338E#FFFFFF#000000##FFFFFF
##2F338E1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f338e;
/* rgb */ color: rgb(47, 51, 142);
/* oklch */ color: oklch(37.8% 0.148 274.9);
Tailwind
colors: {
  custom: {
    50: '#746bb0',
    500: '#2f338e',
    950: '#000000',
  },
}
SCSS
$custom: #2f338e;
$custom-light: #746bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f338e",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 237.474,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37815,
    "c": 0.1476,
    "h": 274.9
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#2F338E
secondary
#B5B164
accent
#D44EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F338E

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

Preview Lab → · Contrast checker → · Palette generator →

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