#2F338C#2F338C

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

Color values

HEX#2F338C
RGBrgb(47, 51, 140)
HSLhsl(237, 50%, 37%)
HSVhsv(237, 66%, 55%)
CMYKcmyk(66.4%, 63.6%, 0%, 45.1%)
CIE-LABlab(26.35, 27.93, -50.06)
CIE-LCHlch(26.35, 57.33, 299.16°)
OKLaboklab(37.64% 0.0127 -0.1442)
OKLCHoklch(37.64% 0.145 275)
XYZxyz(7.0882, 4.8648, 25.3713)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F338C #8C882F
analogous
#2F628C #2F338C #5A2F8C
triadic
#2F338C #8C2F33 #338C2F
tetradic
#2F338C #8C2F62 #8C882F #2F8C5A
square
#2F338C #8C2F62 #8C882F #2F8C5A
split-complementary
#2F338C #8C5A2F #628C2F
monochromatic
#101230 #20225E #2F338C #3E44BA #696DCD

Accessibility & contrast

On white

10.64
#2F338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F338C
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F338C#FFFFFF#000000##FFFFFF
##2F338C1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f338c;
/* rgb */ color: rgb(47, 51, 140);
/* oklch */ color: oklch(37.6% 0.145 275.0);
Tailwind
colors: {
  custom: {
    50: '#736bae',
    500: '#2f338c',
    950: '#000000',
  },
}
SCSS
$custom: #2f338c;
$custom-light: #736bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f338c",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 237.419,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37635,
    "c": 0.14481,
    "h": 275
  },
  "luminance": 0.04865
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F338C

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

Preview Lab → · Contrast checker → · Palette generator →

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