#2F338B#2F338B

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

Color values

HEX#2F338B
RGBrgb(47, 51, 139)
HSLhsl(237, 49%, 36%)
HSVhsv(237, 66%, 55%)
CMYKcmyk(66.2%, 63.3%, 0%, 45.5%)
CIE-LABlab(26.26, 27.57, -49.58)
CIE-LCHlch(26.26, 56.73, 299.08°)
OKLaboklab(37.55% 0.0127 -0.1428)
OKLCHoklch(37.55% 0.143 275.1)
XYZxyz(7.0148, 4.8355, 24.9848)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F338B #8B872F
analogous
#2F618B #2F338B #592F8B
triadic
#2F338B #8B2F33 #338B2F
tetradic
#2F338B #8B2F61 #8B872F #2F8B59
square
#2F338B #8B2F61 #8B872F #2F8B59
split-complementary
#2F338B #8B592F #618B2F
monochromatic
#101130 #20225D #2F338B #3E44B9 #686DCC

Accessibility & contrast

On white

10.68
#2F338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F338B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F338B#FFFFFF#000000##FFFFFF
##2F338B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f338b;
/* rgb */ color: rgb(47, 51, 139);
/* oklch */ color: oklch(37.5% 0.143 275.1);
Tailwind
colors: {
  custom: {
    50: '#736aae',
    500: '#2f338b',
    950: '#000000',
  },
}
SCSS
$custom: #2f338b;
$custom-light: #736aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f338b",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 237.391,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37546,
    "c": 0.14341,
    "h": 275.1
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F338B

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

Preview Lab → · Contrast checker → · Palette generator →

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