#2F308F#2F308F

#2F308F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.153 H 275.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2F308F
RGBrgb(47, 48, 143)
HSLhsl(239, 51%, 37%)
HSVhsv(239, 67%, 56%)
CMYKcmyk(67.1%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.86, 30.97, -52.71)
CIE-LCHlch(25.86, 61.13, 300.44°)
OKLaboklab(37.36% 0.015 -0.152)
OKLCHoklch(37.36% 0.153 275.6)
XYZxyz(7.1855, 4.7008, 26.5100)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F308F #8F8E2F
analogous
#2F608F #2F308F #5E2F8F
triadic
#2F308F #8F2F30 #308F2F
tetradic
#2F308F #8F2F60 #8F8E2F #2F8F5E
square
#2F308F #8F2F60 #8F8E2F #2F8F5E
split-complementary
#2F308F #8F5E2F #608F2F
monochromatic
#111133 #202161 #2F308F #3E3FBD #6A6BCE

Accessibility & contrast

On white

10.82
#2F308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F308F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F308F#FFFFFF#000000##FFFFFF
##2F308F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f308f;
/* rgb */ color: rgb(47, 48, 143);
/* oklch */ color: oklch(37.4% 0.153 275.6);
Tailwind
colors: {
  custom: {
    50: '#7468b1',
    500: '#2f308f',
    950: '#000000',
  },
}
SCSS
$custom: #2f308f;
$custom-light: #7468b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f308f",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 239.375,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37364,
    "c": 0.15277,
    "h": 275.6
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#2F308F
secondary
#B5B465
accent
#D94EDA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F308F

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

Preview Lab → · Contrast checker → · Palette generator →

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