#2B308F#2B308F

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

Color values

HEX#2B308F
RGBrgb(43, 48, 143)
HSLhsl(237, 54%, 36%)
HSVhsv(237, 70%, 56%)
CMYKcmyk(69.9%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.59, 30.40, -53.16)
CIE-LCHlch(25.59, 61.24, 299.76°)
OKLaboklab(37.1% 0.0101 -0.1535)
OKLCHoklch(37.1% 0.154 273.8)
XYZxyz(7.0095, 4.6100, 26.5017)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B308F #8F8A2B
analogous
#2B628F #2B308F #582B8F
triadic
#2B308F #8F2B30 #308F2B
tetradic
#2B308F #8F2B62 #8F8A2B #2B8F58
square
#2B308F #8F2B62 #8F8A2B #2B8F58
split-complementary
#2B308F #8F582B #628F2B
monochromatic
#0F1031 #1D2060 #2B308F #3940BE #6469D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B308F#FFFFFF#000000##FFFFFF
##2B308F1.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)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b308f;
/* rgb */ color: rgb(43, 48, 143);
/* oklch */ color: oklch(37.1% 0.154 273.8);
Tailwind
colors: {
  custom: {
    50: '#7268b1',
    500: '#2b308f',
    950: '#000000',
  },
}
SCSS
$custom: #2b308f;
$custom-light: #7268b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b308f",
  "rgb": {
    "r": 43,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 237,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37095,
    "c": 0.1538,
    "h": 273.8
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#2B308F
secondary
#B7B25F
accent
#D64BDD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B308F

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

Preview Lab → · Contrast checker → · Palette generator →

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