#2F308D#2F308D

#2F308D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.150 H 275.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2F308D
RGBrgb(47, 48, 141)
HSLhsl(239, 50%, 37%)
HSVhsv(239, 67%, 55%)
CMYKcmyk(66.7%, 66%, 0%, 44.7%)
CIE-LABlab(25.69, 30.26, -51.76)
CIE-LCHlch(25.69, 59.95, 300.31°)
OKLaboklab(37.18% 0.0152 -0.1493)
OKLCHoklch(37.18% 0.15 275.8)
XYZxyz(7.0354, 4.6407, 25.7191)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F308D #8D8C2F
analogous
#2F5F8D #2F308D #5D2F8D
triadic
#2F308D #8D2F30 #308D2F
tetradic
#2F308D #8D2F5F #8D8C2F #2F8D5D
square
#2F308D #8D2F5F #8D8C2F #2F8D5D
split-complementary
#2F308D #8D5D2F #5F8D2F
monochromatic
#101131 #20205F #2F308D #3E40BB #696ACD

Accessibility & contrast

On white

10.89
#2F308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F308D
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F308D#FFFFFF#000000##FFFFFF
##2F308D1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f308d;
/* rgb */ color: rgb(47, 48, 141);
/* oklch */ color: oklch(37.2% 0.150 275.8);
Tailwind
colors: {
  custom: {
    50: '#7468af',
    500: '#2f308d',
    950: '#000000',
  },
}
SCSS
$custom: #2f308d;
$custom-light: #7468af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f308d",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 239.362,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37179,
    "c": 0.15003,
    "h": 275.8
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#2F308D
secondary
#B4B364
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F308D

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

Preview Lab → · Contrast checker → · Palette generator →

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