#2F308C#2F308C

#2F308C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.149 H 275.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2F308C
RGBrgb(47, 48, 140)
HSLhsl(239, 50%, 37%)
HSVhsv(239, 66%, 55%)
CMYKcmyk(66.4%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.60, 29.90, -51.28)
CIE-LCHlch(25.60, 59.36, 300.24°)
OKLaboklab(37.09% 0.0153 -0.1479)
OKLCHoklch(37.09% 0.149 275.9)
XYZxyz(6.9613, 4.6111, 25.3290)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F308C #8C8B2F
analogous
#2F5F8C #2F308C #5D2F8C
triadic
#2F308C #8C2F30 #308C2F
tetradic
#2F308C #8C2F5F #8C8B2F #2F8C5D
square
#2F308C #8C2F5F #8C8B2F #2F8C5D
split-complementary
#2F308C #8C5D2F #5F8C2F
monochromatic
#101130 #20205E #2F308C #3E40BA #696ACD

Accessibility & contrast

On white

10.92
#2F308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F308C
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F308C#FFFFFF#000000##FFFFFF
##2F308C1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f308c;
/* rgb */ color: rgb(47, 48, 140);
/* oklch */ color: oklch(37.1% 0.149 275.9);
Tailwind
colors: {
  custom: {
    50: '#7468ae',
    500: '#2f308c',
    950: '#000000',
  },
}
SCSS
$custom: #2f308c;
$custom-light: #7468ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f308c",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 239.355,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37086,
    "c": 0.14864,
    "h": 275.9
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#2F308C
secondary
#B4B363
accent
#D84FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F308C

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

Preview Lab → · Contrast checker → · Palette generator →

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