#2A238E#2A238E

#2A238E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.168 H 276.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A238E
RGBrgb(42, 35, 142)
HSLhsl(244, 60%, 35%)
HSVhsv(244, 75%, 56%)
CMYKcmyk(70.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(22.47, 38.00, -57.68)
CIE-LCHlch(22.47, 69.07, 303.38°)
OKLaboklab(34.8% 0.0178 -0.1667)
OKLCHoklch(34.8% 0.168 276.1)
XYZxyz(6.4368, 3.6467, 25.9506)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A238E #878E23
analogous
#23528E #2A238E #5F238E
triadic
#2A238E #8E2A23 #238E2A
tetradic
#2A238E #8E2352 #878E23 #238E5F
square
#2A238E #8E2352 #878E23 #238E5F
split-complementary
#2A238E #8E5F23 #528E23
monochromatic
#0D0B2C #1B175D #2A238E #392FBF #5E56D5

Accessibility & contrast

On white

12.14
#2A238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A238E
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A238E#FFFFFF#000000##FFFFFF
##2A238E1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a238e;
/* rgb */ color: rgb(42, 35, 142);
/* oklch */ color: oklch(34.8% 0.168 276.1);
Tailwind
colors: {
  custom: {
    50: '#7360b0',
    500: '#2a238e',
    950: '#000000',
  },
}
SCSS
$custom: #2a238e;
$custom-light: #7360b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a238e",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 243.925,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34797,
    "c": 0.16765,
    "h": 276.1
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#2A238E
secondary
#B3B953
accent
#E444D9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A238E

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

Preview Lab → · Contrast checker → · Palette generator →

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