#252F79#252F79

#252F79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.126 H 272.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#252F79
RGBrgb(37, 47, 121)
HSLhsl(233, 53%, 31%)
HSVhsv(233, 69%, 47%)
CMYKcmyk(69.4%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.02, 21.98, -43.59)
CIE-LCHlch(23.02, 48.81, 296.76°)
OKLaboklab(34.5% 0.0048 -0.1255)
OKLCHoklch(34.5% 0.126 272.2)
XYZxyz(5.2295, 3.8063, 18.5446)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F79 #796F25
analogous
#255979 #252F79 #452579
triadic
#252F79 #79252F #2F7925
tetradic
#252F79 #792559 #796F25 #257945
square
#252F79 #792559 #796F25 #257945
split-complementary
#252F79 #794525 #597925
monochromatic
#080B1B #171D4A #252F79 #3341A8 #4F5EC9

Accessibility & contrast

On white

11.92
#252F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#252F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F79
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F79#FFFFFF#000000##FFFFFF
##252F791.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252f79;
/* rgb */ color: rgb(37, 47, 121);
/* oklch */ color: oklch(34.5% 0.126 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b67a0',
    500: '#252f79',
    950: '#000000',
  },
}
SCSS
$custom: #252f79;
$custom-light: #6b67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252f79",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 232.857,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.345,
    "c": 0.12563,
    "h": 272.2
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#252F79
secondary
#ABA04E
accent
#CB4BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #252F79

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

Preview Lab → · Contrast checker → · Palette generator →

#252F79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva