#2B308C#2B308C

#2B308C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.150 H 273.9°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2B308C
RGBrgb(43, 48, 140)
HSLhsl(237, 53%, 36%)
HSVhsv(237, 69%, 55%)
CMYKcmyk(69.3%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.32, 29.31, -51.75)
CIE-LCHlch(25.32, 59.47, 299.53°)
OKLaboklab(36.81% 0.0103 -0.1493)
OKLCHoklch(36.81% 0.15 273.9)
XYZxyz(6.7853, 4.5203, 25.3208)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B308C #8C872B
analogous
#2B608C #2B308C #562B8C
triadic
#2B308C #8C2B30 #308C2B
tetradic
#2B308C #8C2B60 #8C872B #2B8C56
square
#2B308C #8C2B60 #8C872B #2B8C56
split-complementary
#2B308C #8C562B #608C2B
monochromatic
#0E102E #1D205D #2B308C #3940BB #6268CF

Accessibility & contrast

On white

11.03
#2B308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2B308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B308C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B308C#FFFFFF#000000##FFFFFF
##2B308C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b308c;
/* rgb */ color: rgb(43, 48, 140);
/* oklch */ color: oklch(36.8% 0.150 273.9);
Tailwind
colors: {
  custom: {
    50: '#7268ae',
    500: '#2b308c',
    950: '#000000',
  },
}
SCSS
$custom: #2b308c;
$custom-light: #7268ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b308c",
  "rgb": {
    "r": 43,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 236.907,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36813,
    "c": 0.14968,
    "h": 273.9
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#2B308C
secondary
#B5B15E
accent
#D54BDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B308C

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

Preview Lab → · Contrast checker → · Palette generator →

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