#2F338F#2F338F

#2F338F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.149 H 274.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2F338F
RGBrgb(47, 51, 143)
HSLhsl(238, 51%, 37%)
HSVhsv(238, 67%, 56%)
CMYKcmyk(67.1%, 64.3%, 0%, 43.9%)
CIE-LABlab(26.60, 29.01, -51.50)
CIE-LCHlch(26.60, 59.11, 299.40°)
OKLaboklab(37.91% 0.0125 -0.1485)
OKLCHoklch(37.91% 0.149 274.8)
XYZxyz(7.3124, 4.9545, 26.5522)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F338F #8F8B2F
analogous
#2F638F #2F338F #5B2F8F
triadic
#2F338F #8F2F33 #338F2F
tetradic
#2F338F #8F2F63 #8F8B2F #2F8F5B
square
#2F338F #8F2F63 #8F8B2F #2F8F5B
split-complementary
#2F338F #8F5B2F #638F2F
monochromatic
#111233 #202361 #2F338F #3E43BD #6A6ECE

Accessibility & contrast

On white

10.55
#2F338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F338F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F338F#FFFFFF#000000##FFFFFF
##2F338F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f338f;
/* rgb */ color: rgb(47, 51, 143);
/* oklch */ color: oklch(37.9% 0.149 274.8);
Tailwind
colors: {
  custom: {
    50: '#746bb1',
    500: '#2f338f',
    950: '#000000',
  },
}
SCSS
$custom: #2f338f;
$custom-light: #746bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f338f",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 237.5,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37906,
    "c": 0.14899,
    "h": 274.8
  },
  "luminance": 0.04955
}

Semantic roles & 50–950 ramp

primary
#2F338F
secondary
#B5B265
accent
#D44EDA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F338F

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

Preview Lab → · Contrast checker → · Palette generator →

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