#2B309E#2B309E

#2B309E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.174 H 272.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#2B309E
RGBrgb(43, 48, 158)
HSLhsl(237, 57%, 39%)
HSVhsv(237, 73%, 62%)
CMYKcmyk(72.8%, 69.6%, 0%, 38%)
CIE-LABlab(27.00, 35.77, -60.05)
CIE-LCHlch(27.00, 69.90, 300.78°)
OKLaboklab(38.55% 0.0085 -0.1736)
OKLCHoklch(38.55% 0.174 272.8)
XYZxyz(8.2227, 5.0953, 32.8913)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B309E #9E992B
analogous
#2B6A9E #2B309E #5F2B9E
triadic
#2B309E #9E2B30 #309E2B
tetradic
#2B309E #9E2B6A #9E992B #2B9E5F
square
#2B309E #9E2B6A #9E992B #2B9E5F
split-complementary
#2B309E #9E5F2B #6A9E2B
monochromatic
#11133E #1E216E #2B309E #3C42CA #6C71D7

Accessibility & contrast

On white

10.40
#2B309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2B309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B309E
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B309E#FFFFFF#000000##FFFFFF
##2B309E1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b309e;
/* rgb */ color: rgb(43, 48, 158);
/* oklch */ color: oklch(38.6% 0.174 272.8);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2b309e',
    950: '#000000',
  },
}
SCSS
$custom: #2b309e;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b309e",
  "rgb": {
    "r": 43,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 237.391,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38552,
    "c": 0.17384,
    "h": 272.8
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#2B309E
secondary
#BEBA67
accent
#DA47E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B309E

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

Preview Lab → · Contrast checker → · Palette generator →

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