#2F338A#2F338A

#2F338A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.142 H 275.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2F338A
RGBrgb(47, 51, 138)
HSLhsl(237, 49%, 36%)
HSVhsv(237, 66%, 54%)
CMYKcmyk(65.9%, 63%, 0%, 45.9%)
CIE-LABlab(26.18, 27.21, -49.10)
CIE-LCHlch(26.18, 56.13, 299.00°)
OKLaboklab(37.46% 0.0128 -0.1414)
OKLCHoklch(37.46% 0.142 275.2)
XYZxyz(6.9421, 4.8064, 24.6017)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F338A #8A862F
analogous
#2F618A #2F338A #592F8A
triadic
#2F338A #8A2F33 #338A2F
tetradic
#2F338A #8A2F61 #8A862F #2F8A59
square
#2F338A #8A2F61 #8A862F #2F8A59
split-complementary
#2F338A #8A592F #618A2F
monochromatic
#10112F #1F225C #2F338A #3F44B8 #686CCC

Accessibility & contrast

On white

10.71
#2F338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F338A
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F338A#FFFFFF#000000##FFFFFF
##2F338A1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f338a;
/* rgb */ color: rgb(47, 51, 138);
/* oklch */ color: oklch(37.5% 0.142 275.2);
Tailwind
colors: {
  custom: {
    50: '#736aad',
    500: '#2f338a',
    950: '#000000',
  },
}
SCSS
$custom: #2f338a;
$custom-light: #736aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f338a",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 237.363,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37457,
    "c": 0.142,
    "h": 275.2
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#2F338A
secondary
#B3AF62
accent
#D34FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F338A

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

Preview Lab → · Contrast checker → · Palette generator →

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