#232271#232271

#232271 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.132 H 276.1°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#232271
RGBrgb(35, 34, 113)
HSLhsl(241, 54%, 29%)
HSVhsv(241, 70%, 44%)
CMYKcmyk(69%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.77, 27.52, -45.40)
CIE-LCHlch(18.77, 53.09, 301.22°)
OKLaboklab(31.12% 0.014 -0.131)
OKLCHoklch(31.12% 0.132 276.1)
XYZxyz(4.2448, 2.6933, 15.9157)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232271 #707122
analogous
#224971 #232271 #4B2271
triadic
#232271 #712322 #227123
tetradic
#232271 #712249 #707122 #22714B
square
#232271 #712249 #707122 #22714B
split-complementary
#232271 #714B22 #497122
monochromatic
#070718 #141442 #232271 #3230A0 #4846C7

Accessibility & contrast

On white

13.65
#232271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#232271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232271
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232271#FFFFFF#000000##FFFFFF
##2322711.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #232271;
/* rgb */ color: rgb(35, 34, 113);
/* oklch */ color: oklch(31.1% 0.132 276.1);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#232271',
    950: '#000000',
  },
}
SCSS
$custom: #232271;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#232271",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 240.759,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.13177,
    "h": 276.1
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#232271
secondary
#A3A44A
accent
#DD4BDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #232271

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

Preview Lab → · Contrast checker → · Palette generator →

#232271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva