#2F308B#2F308B

#2F308B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.147 H 276.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2F308B
RGBrgb(47, 48, 139)
HSLhsl(239, 49%, 36%)
HSVhsv(239, 66%, 55%)
CMYKcmyk(66.2%, 65.5%, 0%, 45.5%)
CIE-LABlab(25.51, 29.54, -50.81)
CIE-LCHlch(25.51, 58.77, 300.18°)
OKLaboklab(36.99% 0.0153 -0.1465)
OKLCHoklch(36.99% 0.147 276)
XYZxyz(6.8879, 4.5817, 24.9425)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F308B #8B8A2F
analogous
#2F5E8B #2F308B #5C2F8B
triadic
#2F308B #8B2F30 #308B2F
tetradic
#2F308B #8B2F5E #8B8A2F #2F8B5C
square
#2F308B #8B2F5E #8B8A2F #2F8B5C
split-complementary
#2F308B #8B5C2F #5E8B2F
monochromatic
#101030 #20205D #2F308B #3E40B9 #6869CC

Accessibility & contrast

On white

10.96
#2F308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F308B
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F308B#FFFFFF#000000##FFFFFF
##2F308B1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f308b;
/* rgb */ color: rgb(47, 48, 139);
/* oklch */ color: oklch(37.0% 0.147 276.0);
Tailwind
colors: {
  custom: {
    50: '#7368ae',
    500: '#2f308b',
    950: '#000000',
  },
}
SCSS
$custom: #2f308b;
$custom-light: #7368ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f308b",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 239.348,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36994,
    "c": 0.14727,
    "h": 276
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#2F308B
secondary
#B3B263
accent
#D74FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F308B

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

Preview Lab → · Contrast checker → · Palette generator →

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