#2F308E#2F308E

#2F308E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.151 H 275.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2F308E
RGBrgb(47, 48, 142)
HSLhsl(239, 50%, 37%)
HSVhsv(239, 67%, 56%)
CMYKcmyk(66.9%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.77, 30.61, -52.23)
CIE-LCHlch(25.77, 60.54, 300.37°)
OKLaboklab(37.27% 0.0151 -0.1506)
OKLCHoklch(37.27% 0.151 275.7)
XYZxyz(7.1101, 4.6706, 26.1128)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F308E #8E8D2F
analogous
#2F608E #2F308E #5D2F8E
triadic
#2F308E #8E2F30 #308E2F
tetradic
#2F308E #8E2F60 #8E8D2F #2F8E5D
square
#2F308E #8E2F60 #8E8D2F #2F8E5D
split-complementary
#2F308E #8E5D2F #608E2F
monochromatic
#111132 #202060 #2F308E #3E40BC #6A6BCE

Accessibility & contrast

On white

10.86
#2F308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F308E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F308E#FFFFFF#000000##FFFFFF
##2F308E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f308e;
/* rgb */ color: rgb(47, 48, 142);
/* oklch */ color: oklch(37.3% 0.151 275.7);
Tailwind
colors: {
  custom: {
    50: '#7468b0',
    500: '#2f308e',
    950: '#000000',
  },
}
SCSS
$custom: #2f308e;
$custom-light: #7468b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f308e",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 239.368,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37271,
    "c": 0.1514,
    "h": 275.7
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#2F308E
secondary
#B5B464
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F308E

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

Preview Lab → · Contrast checker → · Palette generator →

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