#2E307A#2E307A

#2E307A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.123 H 276.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2E307A
RGBrgb(46, 48, 122)
HSLhsl(238, 45%, 33%)
HSVhsv(238, 62%, 48%)
CMYKcmyk(62.3%, 60.7%, 0%, 52.2%)
CIE-LABlab(24.00, 23.25, -42.60)
CIE-LCHlch(24.00, 48.54, 298.63°)
OKLaboklab(35.41% 0.0148 -0.1224)
OKLCHoklch(35.41% 0.123 276.9)
XYZxyz(5.6954, 4.0995, 18.8997)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E307A #7A782E
analogous
#2E567A #2E307A #522E7A
triadic
#2E307A #7A2E30 #307A2E
tetradic
#2E307A #7A2E56 #7A782E #2E7A52
square
#2E307A #7A2E56 #7A782E #2E7A52
split-complementary
#2E307A #7A522E #567A2E
monochromatic
#0C0D21 #1D1F4E #2E307A #3F41A6 #6062C3

Accessibility & contrast

On white

11.54
#2E307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E307A
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E307A#FFFFFF#000000##FFFFFF
##2E307A1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e307a;
/* rgb */ color: rgb(46, 48, 122);
/* oklch */ color: oklch(35.4% 0.123 276.9);
Tailwind
colors: {
  custom: {
    50: '#6f68a1',
    500: '#2e307a',
    950: '#000000',
  },
}
SCSS
$custom: #2e307a;
$custom-light: #6f68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e307a",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 238.421,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35414,
    "c": 0.12328,
    "h": 276.9
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#2E307A
secondary
#AAA75A
accent
#D253D5
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E307A

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

Preview Lab → · Contrast checker → · Palette generator →

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