#2F338D#2F338D

#2F338D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.146 H 275.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2F338D
RGBrgb(47, 51, 141)
HSLhsl(237, 50%, 37%)
HSVhsv(237, 67%, 55%)
CMYKcmyk(66.7%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.43, 28.29, -50.54)
CIE-LCHlch(26.43, 57.92, 299.24°)
OKLaboklab(37.72% 0.0126 -0.1457)
OKLCHoklch(37.72% 0.146 275)
XYZxyz(7.1623, 4.8945, 25.7614)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F338D #8D892F
analogous
#2F628D #2F338D #5A2F8D
triadic
#2F338D #8D2F33 #338D2F
tetradic
#2F338D #8D2F62 #8D892F #2F8D5A
square
#2F338D #8D2F62 #8D892F #2F8D5A
split-complementary
#2F338D #8D5A2F #628D2F
monochromatic
#101231 #20225F #2F338D #3E44BB #696ECD

Accessibility & contrast

On white

10.61
#2F338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F338D
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F338D#FFFFFF#000000##FFFFFF
##2F338D1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f338d;
/* rgb */ color: rgb(47, 51, 141);
/* oklch */ color: oklch(37.7% 0.146 275.0);
Tailwind
colors: {
  custom: {
    50: '#736baf',
    500: '#2f338d',
    950: '#000000',
  },
}
SCSS
$custom: #2f338d;
$custom-light: #736baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f338d",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 237.447,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37725,
    "c": 0.14621,
    "h": 275
  },
  "luminance": 0.04895
}

Semantic roles & 50–950 ramp

primary
#2F338D
secondary
#B4B164
accent
#D44EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F338D

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

Preview Lab → · Contrast checker → · Palette generator →

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